Commit db00d270 by BellCodeEditor

save project

parent ea986788
Showing with 8 additions and 2 deletions
import wordcloud import wordcloud
C = wordcloud.WordCloud(background_color='white',font_path='楷体') with open('python二级考试大纲.txt',
C.generate('python二级考试大纲.txt') encoding='utf-8') as f:
text = f.read()
C = wordcloud.WordCloud(background_color='white',
font_path='SimHei.ttf')
C.generate(text)
C.to_file('mycloud.png') C.to_file('mycloud.png')
\ No newline at end of file

11.3 KB | W: | H:

67.5 KB | W: | H:

mycloud.png
mycloud.png
mycloud.png
mycloud.png
  • 2-up
  • Swipe
  • Onion skin
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