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)
原文地址:https://www.cnblogs.com/du-jun/p/10353356.html
时间: 2024-10-11 20:47:43