Commit 2996c006 by BellCodeEditor

save project

parent 6b1fbc15
Showing with 11 additions and 0 deletions

125 Bytes | W: | H:

7.9 KB | W: | H:

6x2.png
6x2.png
6x2.png
6x2.png
  • 2-up
  • Swipe
  • Onion skin

197 KB | W: | H:

8.91 KB | W: | H:

bell.png
bell.png
bell.png
bell.png
  • 2-up
  • Swipe
  • Onion skin
import wordcloud import wordcloud
with open('python二级考试大纲.txt',encoding='utf-8') as f:
text = f.read()
w = wordcloud.WordCloud(background_color="red",
font_path='SimHei.ttf')
w.generate(text)
w.to_file("mycloud.png")
\ No newline at end of file
mycloud.png

72.6 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