Commit 04859742 by BellCodeEditor

save project

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