摘要: 使用方法举例: 1 import re 2 3 character = re.compile('[^\w\u4e00-\u9fa5]+') # \u4e00-\u9fa5是中文的Uincode码 4 test_str = 'as()12c!@#2/1$4\大3 %[]^sa{}23da 大' 5 m 阅读全文
posted @ 2021-01-01 16:55 Pio-GD 阅读(88) 评论(0) 推荐(0)