importrenew='我单位招标号TJ20190101001已结束,'temp_list=re.findall('[\x00-\xff]',new)print(re.findall('[\x00-\xff]',new))result=''.join(temp_list)print(result)#匹配所有汉字print(re.findall('[\u4e00-\u9fa5]',data))#匹配所有单字符、英文、数字、特殊符号print(re.findall('[\x00-\xff]',data))#匹配所有非单字符、汉字和省略号print(re.findall('[^\x00-\xff]',数据))
