Commit bb7d0ea3 by BellCodeEditor

save project

parent aa23bfa4
Showing with 6 additions and 5 deletions
import wordcloud import wordcloud
#c:\Users\Windows\Documents\level3-lesson21-diy1\python二级考试大纲.txt
w = wordcloud.WordCloud(background_color="white") w = wordcloud.WordCloud(background_color="red"'
w.generate("hello word") font_path='SimHei.ttf')
w.to_file("my_cloud.png") w.generate("贝尔编程")
\ No newline at end of file w.to_file("mycloud.png")
\ No newline at end of file

9.69 KB | W: | H:

665 Bytes | 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