摘要: ```python def change_text(path): with open(path,'r',encoding='utf-8') as f_read: raw_text = f_read.read() ## 删除空格和换行 raw_text = re.sub(u'([\r\n ])','',raw_text) ## ... 阅读全文
posted @ 2019-08-27 17:23 FromZeroToOne 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 挖坑 阅读全文
posted @ 2019-08-27 16:56 FromZeroToOne 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 提取句子中中英文数字 | \u4e00 \u9fa5 | 汉字的unicode范围 | | | | | \u0030 \u0039 | 数字的unicode范围 | | \u0041 \u005a | 大写字母unicode范围 | | \u0061 \u007a | 小写字母unicode范围 | 阅读全文
posted @ 2019-08-27 16:44 FromZeroToOne 阅读(303) 评论(0) 推荐(0) 编辑