摘要: import jieba f=open('hlm.txt','r') text=f.read() notelist=list(jieba.lcut(text)) textdic={} for i in set(notelist): #计算次数 textdic[i]=notelist.count(i) delete={'。',' ','他',';', '的', '说', '道', ... 阅读全文
posted @ 2018-03-28 13:23 loadingwhat 阅读(160) 评论(0) 推荐(0) 编辑