Commit cc2d3093 by BellCodeEditor

save project

parent 7761737a
Showing with 5 additions and 2 deletions

12.5 KB | W: | H:

74.4 KB | W: | H:

my_cloud.png
my_cloud.png
my_cloud.png
my_cloud.png
  • 2-up
  • Swipe
  • Onion skin
import wordcloud import wordcloud
w=wordcloud.WordCloud(background_color="red") with open("python二级考试大纲.txt",encoding='utf-8')as f:
w.generate("monochrome insomania isotope") text=f.read()
w=wordcloud.WordCloud(background_color="red"and"blue",font_path="SimHei.ttf")
w.generate(text)
w.to_file("my_cloud.png") w.to_file("my_cloud.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