摘要: import re mystr = "hahaAAA哈哈綂123./!#鱫愛" str1 = ''.join(re.findall('[\u4e00-\u9fa5]',mystr)) # 只保留汉字 print(str1) str2 = ''.join(re.findall('[a-z]',myst 阅读全文
posted @ 2021-02-27 22:07 CNPolaris 阅读(178) 评论(0) 推荐(0) 编辑