Commit e82fb1fa by BellCodeEditor

save project

parent 363246be
Showing with 7 additions and 6 deletions
import wordcloud import wordcloud
w=wordcloud.WordCloud(background_color='white',font_path='SinHei') w=wordcloud.WordCloud(background_color='white',font_path='SinHei')
with open('python二级考试大纲.txt','r',encoding='utf-8') as f: f=open('python二级考试大纲.txt','r',encoding='utf-8')
t=f.read() t=f.read()
f.close()
w.generate(t) t=str(t)
w.to_file('txt.png') w.generate(t)
\ No newline at end of file w.to_file('t.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