Commit 6792af19 by BellCodeEditor

save project

parent e1b759d2
Showing with 5 additions and 4 deletions
import wordcloud import wordcloud
from PIL import Image with open('python二级考试大纲.txt',encoding='utf-8')as f:
import numpy text=f.read()
import jieba w=wordcloud.WordCloud(background_color="lightgreen",font_path="SimHei.ttf")
\ No newline at end of file w.generate(text)
w.to_file("mycloud.png")
mycloud.png

68.3 KB

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