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’!"#%&’()*+,-./:;<=>?@,。?★、…【
相關文章
相關標籤/搜索