Commit 5b920d16 by BellCodeEditor

save project

parent 2f2bf6ba
Showing with 5 additions and 2 deletions
...@@ -4,4 +4,7 @@ with open('python二级等级考试大纲.txt', encoding='utf-8')as f: ...@@ -4,4 +4,7 @@ with open('python二级等级考试大纲.txt', encoding='utf-8')as f:
w = wordcloud.WordCloud(backgroud_color="white") w = wordcloud.WordCloud(backgroud_color="white")
w.generate("hello word") w.generate("hello word")
w.to_file("mycloud.png") w.to_file("mycloud.png")
\ No newline at end of file img = Image.open("bell.png")
data = numpy.array(img)
img_colors = wordcloud.ImageColorGenerator(data)
\ 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