摘要:
import jiebaimport wordcloudfrom imageio import imreadmask=imread('fivestar.png')def shuchu(): txt=open('threekingdoms.txt','r',encoding='gb18030').read() excludes={'将军','却说','荆州','二人','不可','不能'... 阅读全文
摘要:
import jiebaimport wordclouddef shuchu(): txt=open('threekingdoms.txt','r',encoding='gb18030').read() excludes={'将军','却说','荆州','二人','不可','不能','如此'} words=jieba.lcut(txt) counts={} for w... 阅读全文