Commit a22d1f85 by BellCodeEditor

save project

parent 6b1fbc15
m_c.png

12 KB

my_c.png

82 KB

import wordcloud import wordcloud
with open("python二级考试大纲.txt","r",encoding="utf-8")as f:
data=f.read()
print(data)
w=wordcloud.WordCloud(background_color="white",
font_path="STXINGKA.TTF")
w.generate(data)
w.to_file("my_c.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