摘要: 1、匹配中文 # u'[\u4e00-\u9fa5]+'(匹配所有中文的unicode类型) text='中文ABCD测试12345测试' prog = re.compile(u'[\u4e00-\u9fa5]+\w+[\u4e00-\u9fa5]+') res=prog.findall(text) 阅读全文
posted @ 2019-12-02 16:48 風£飛 阅读(94) 评论(0) 推荐(0) 编辑