Commit 5c7e6eb8 by BellCodeEditor

save project

parent 9b02cd50
Showing with 8 additions and 3 deletions
import wordcloud import wordcloud
from PIL import Image from PIL import Image
import numpy with open('python2级考试大钢。txt',encoding='utf-8') as f:
import jieba text = f.read()
\ No newline at end of file
w = wordcloud.WordCloud(background_color="white",
front_path='SimHei.ttf')
w.generate("hello word")
w.to_file("mycloud.png")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment