Commit 98aaf6b2 by BellCodeEditor

save project

parent 6b1fbc15
Showing with 8 additions and 2 deletions

410 KB | W: | H:

76.6 KB | W: | H:

alice.png
alice.png
alice.png
alice.png
  • 2-up
  • Swipe
  • Onion skin
import wordcloud
\ No newline at end of file
import wordcloud
with open('python二级考试大纲.txt','r',encoding='utf-8') as f:
content=f.read()
w=wordcloud.WordCloud(background_color='white',font_path='SimHei.ttf')
w.generate(content)
w.to_file('alice.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