Commit 45f663c0 by BellCodeEditor

save project

parent 3f10c5db
Showing with 1 additions and 1 deletions
...@@ -6,7 +6,7 @@ img=Image.open('bell.png') ...@@ -6,7 +6,7 @@ img=Image.open('bell.png')
val=np.array(img) val=np.array(img)
img_colors=wordcloud.ImageColorGenerator(val) img_colors=wordcloud.ImageColorGenerator(val)
w=wordcloud.WordCloud(background_color='black',font_path='SimHei.ttf',mask=val,color_func=img_colors) w=wordcloud.WordCloud(background_color='yellow',font_path='SimHei.ttf',mask=val,color_func=img_colors)
with open(file='1.txt',mode='r',encoding='utf-8')as file: with open(file='1.txt',mode='r',encoding='utf-8')as file:
r=file.read() r=file.read()
w.generate(r) w.generate(r)
......

80.9 KB | W: | H:

204 KB | W: | H:

py.png
py.png
py.png
py.png
  • 2-up
  • Swipe
  • Onion skin
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