标签:bsp try 过滤 str logs python3 emoji表情 dbf emoji
https://www.cnblogs.com/lizm166/p/9662995.html
def filter_emoji(desstr,restr=‘‘): #过滤表情 try: co = re.compile(u‘[\U00010000-\U0010ffff]‘) except re.error: co = re.compile(u‘[\uD800-\uDBFF][\uDC00-\uDFFF]‘) return co.sub(restr, desstr)
标签:bsp try 过滤 str logs python3 emoji表情 dbf emoji
原文地址:https://www.cnblogs.com/du-jun/p/10353356.html