0
点赞
收藏
分享

微信扫一扫

wordcloud库常规方法

十里一走马 2022-03-10 阅读 109
python

w.generate(txt) 向WordCloud对象中加载文本txt

w = wordcloud.WorldCloud()
w.generate("Python and wordcloud")

w.to_file(filename)         将词云输出为图像文件,.png格式或.jpg格式

w = wordcloud.WorldCloud()
w.to_file("outfile.png")
举报

相关推荐

0 条评论