摘要: import jiebatxt=open('threekingdoms.txt','r',encoding='gb18030').read()excludes={'将军','却说','荆州','二人','不可','不能','如此'}words=jieba.lcut(txt)counts={}for word in words: if len(word)==1: continue elif word 阅读全文
posted @ 2019-09-08 23:30 Aluosen 阅读(696) 评论(0) 推荐(0) 编辑