Commit 9c71dcde by BellCodeEditor

save project

parent 6b1fbc15
Showing with 8 additions and 2 deletions
File added
import wordcloud
\ No newline at end of file
import wordcloud
f=open('python二级考试大纲.txt','r',encoding='utf-8')
n=f.read()
w=wordcloud.WordCloud(background_color='skyblue',font_path='STHUPO.TTF')
w.generate(n)
w.to_file('sb.png')
f.close()
\ 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