词云

import jieba
mytext = " ".join(jieba.cut(mytext))
print(mytext)
from wordcloud import WordCloud
wordcloud = WordCloud(font_path="simsun.ttf").generate(mytext)
%pylab inline
import matplotlib.pyplot as plt
plt.imshow(wordcloud, interpolation='bilinear')
plt.axis("off")

 

上一篇:Apache2.4.6 添加虚拟主机


下一篇:vue2.0学习(一)