摘要: import jiebaimport wordcloudfrom imageio import imreadmask=imread('fivestar.png')def shuchu(): txt=open('threekingdoms.txt','r',encoding='gb18030').read() excludes={'将军','却说','荆州','二人','不可','不能'... 阅读全文
posted @ 2019-09-11 23:24 Aluosen 阅读(571) 评论(0) 推荐(0) 编辑
摘要: import jiebaimport wordclouddef shuchu(): txt=open('threekingdoms.txt','r',encoding='gb18030').read() excludes={'将军','却说','荆州','二人','不可','不能','如此'} words=jieba.lcut(txt) counts={} for w... 阅读全文
posted @ 2019-09-11 00:00 Aluosen 阅读(556) 评论(0) 推荐(0) 编辑