使用正则提取执行字符,我们需要知道提取的目标字符,使用unicode编码实现,unicode编码参考官方文档:https://en.wikibooks.org/wiki/Unicode/Character_reference
message=re.sub(r'[^\u0000-\uFFFF]','',message)#过滤掉特殊字符,只提取unicode编码为0000-FFFF的数据。
使用正则提取执行字符,我们需要知道提取的目标字符,使用unicode编码实现,unicode编码参考官方文档:https://en.wikibooks.org/wiki/Unicode/Character_reference
message=re.sub(r'[^\u0000-\uFFFF]','',message)#过滤掉特殊字符,只提取unicode编码为0000-FFFF的数据。