2017年9月29日

摘要: import jieba print('top20词汇出现的次数:') #读入文本文件 txt=open('G:\wgd.txt','r',encoding='utf-8').read() #清除无意义符号 for i in ',。!、 \n “” ;': txt=txt.replace(i,'') #词汇的列表 d={} words=jieba.cut(txt) keys=... 阅读全文
posted @ 2017-09-29 21:12 069王国栋 阅读(123) 评论(0) 推荐(0)

导航