Commit 6b805b98 by BellCodeEditor

auto save

parent 7d464f1a
Showing with 4 additions and 2 deletions
hllo.png

6.71 KB

import wordcloud import wordcloud
with open('test .txt',encoding='utf-8')as f:
W =wordcloud.WordCloud(background_color="white"foht_path'simsunb') text =f.read()
w =wordcloud.WordCloud(background_color="white",font_path='simhei.ttf')
w.generate("helle woeg") w.generate("helle woeg")
w.to_file("hllo.png") w.to_file("hllo.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