Commit f314f806 by BellCodeEditor

save project

parent f5c960c4
Showing with 9 additions and 7 deletions
import wordcloud file1=open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='utf-8')
with open('jj.txt',encoding='utf-8') as f: file1.write('小兰:12本\n')
text = f.read() file1.write('小丽:11本\n')
w=wordcloud.WordCloud(background_color="pink",font_path='caixukun.ttf') file1.write('李文:9本\n')
w.generate(text) file1.write('张伟:16本\n')
w.to_flie('mycloud.png') file1.write('小强:12本\n')
\ No newline at end of file file1.write('李明:15本\n')
flie1.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