词云图 from os import path from PIL import Image import numpy as np import matplotlib.pyplot as plt from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator import jieba text = open(path.join(r'new.txt'),encoding='utf-8').read() wordlist = jieba.…
Python2.7 anaconda.安装Wordcloud,网上有许多下载路径,说一下掩模,就是在这个膜的区域才会有东西,当然这个与实际的掩模还有一定区别,这个词频显示是把所有统计的词,显示在这个掩模图片的非白色区域. (接下来就不用看着网上那些小软件很羡慕,其实代码就十行左右,你也可以) from os import path from scipy.misc import imread import matplotlib.pyplot as plt from wordcloud import…