pip install stylecloud
from stylecloud import gen_stylecloud gen_stylecloud('zhangsan lisi wangwu zhangsan lisi zhaoliu')
from stylecloud import gen_stylecloud # 讀取文件製做詞雲,若是是中文,須要設置字體 gen_stylecloud(file_path="a.txt", font_path="msyh.ttc")