Commit 9fcbe532 by BellCodeEditor

save project

parent 3b412afb
Showing with 2 additions and 2 deletions
...@@ -3,4 +3,4 @@ w=wordcloud.WordCloud(background_color="white",font_path="SimHei.ttf") ...@@ -3,4 +3,4 @@ w=wordcloud.WordCloud(background_color="white",font_path="SimHei.ttf")
with open("python二级考试大纲.txt","r",encoding='utf-8') as f: with open("python二级考试大纲.txt","r",encoding='utf-8') as f:
a=f.read() a=f.read()
w.generate(a) w.generate(a)
w.to_file("mycloud.png") w.to_file(r"C:\Users\Administrator\Desktop\mycloud.png")
\ No newline at end of file \ No newline at end of file
mycloud.png

74.4 KB

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