Python3利用wordcloud实现词云

from wordcloud import WordCloud import matplotlib.pyplot as plt #注意这个是没有后缀的 f = open('cloud', 'r').read() wordcloud = WordCloud(background_color="white", width=1000, height=860, margin=2).generate(f)
相关文章
相关标签/搜索