Commit 47f9e7ce by BellCodeEditor

save project

parent cae9dfde
Showing with 5 additions and 3 deletions
import wordcloud import wordcloud
w=wordcloud.WordCloud(background_color='black',font_path='SimHei.ttf') w=wordcloud.WordCloud(background_color='black',font_path='SimHei.ttf')
w.generate('我左边那两个是化学元素周期表第17号元素') with open(file='python二级考试大纲.txt',mode='r',encoding='utf-8') as file:
w.to_file('py.png') r=file.read()
\ No newline at end of file w.generate(r)
w.to_file('py.png')
\ No newline at end of file

1.59 KB | W: | H:

68.8 KB | W: | H:

py.png
py.png
py.png
py.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