Commit 969a9454 by BellCodeEditor

save project

parent 2aeb497b
Showing with 11 additions and 2 deletions
import wordcloud
\ No newline at end of file
import wordcloud
from PIL import Image
import numpy
import jieba
w=wordcloud.WordCloud(background_color="white",font_path='SimHei.ttf')
with open('python二级考试大纲.txt','r',encoding='utf_8') as f:
content=f.read()
w.generate(content)
w.to_file('my_wordcloud.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