摘要: 1.读入待分析的字符串 fo=open('tt.txt','r')#以阅读方式打开文档tt.txt news=fo.read() 2.分解提取单词 news=news.lower() for i in ',.-"': news=news.replace(i,' ') words=news.split 阅读全文
posted @ 2017-09-26 09:49 lililililililli 阅读(175) 评论(0) 推荐(0) 编辑