Commit dc77decc by BellCodeEditor

auto save

parent bc8cabd8
Showing with 5 additions and 1 deletions
......@@ -10,7 +10,10 @@ i=Image.open('bell.png')
v=np.array(i)
d=wordcloud.ImageColorGenerator(v)
sssss=['的','python','和','基本','程序']
w=wordcloud.WordCloud(background_color='skyblue',font_path='STXINWEI.TTF',mask=v,color_func=d,stopwords=sssss,max_font_size=60)
w=wordcloud.WordCloud(background_color='skyblue',
font_path='SimHei.ttf',
mask=v,color_func=d,
stopwords=sssss,max_font_size=60)
w.generate(l)
w.to_file('sb.png')
f.close()
\ No newline at end of file

195 KB | W: | H:

193 KB | W: | H:

sb.png
sb.png
sb.png
sb.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