安装

pip install stylecloud

 

使用

from stylecloud import gen_stylecloud


gen_stylecloud('zhangsan  lisi wangwu  zhangsan  lisi zhaoliu')

 

结果

Python制作词云--stylecloud简单使用

 

深入一点点

from stylecloud import gen_stylecloud

# 读取文件制作词云,如果是中文,需要设置字体
gen_stylecloud(file_path="a.txt", font_path="msyh.ttc")

 

相关文章:

  • 2022-12-23
  • 2021-08-10
  • 2022-01-08
  • 2021-11-28
  • 2021-07-09
  • 2021-06-09
  • 2021-05-30
  • 2022-12-23
猜你喜欢
  • 2021-07-13
  • 2021-12-27
  • 2021-12-29
  • 2021-04-04
  • 2022-01-16
  • 2021-11-28
  • 2021-07-03
相关资源
相似解决方案