python中re正则过滤数字和字母,只保留中文

#去除特殊字符,只保留汉子,字母、数字web import resvg s = ‘1123*#$ 中abc国’ str = re.sub(’[a-zA-Z0-9’!"#KaTeX parse error: Expected 'EOF', got '#' at position 61: …~\s]+', "", s) #̲[a-zA-Z0-9’!"#%&’()*+,-./:;<=>?@,。?★、…【
相关文章
相关标签/搜索