Commit 7da1ed95 by BellCodeEditor

auto save

parent d5fe6cdf
Showing with 28 additions and 0 deletions
import wordcloud
from PIL import Image
import numpy
with open('qq.txt',encoding="utf-8") as f:
text=f.read()
img=Image.open("hero2.png")
data=numpy.array(img)
w=wordcloud.WordCloud(background_color="white",font_path="STKAITI.TTF",mask=data)
w.generate(text)
w.to_file("mycloud.png")
\ No newline at end of file
hero2.png

10.9 KB

mycloud.png

4.22 KB

ghohdohdihdfb
afhisdfhsjflw
sdhjkfnslkc
sfbjkdfnlsd
sdknfl
jdnadkm;
DSADJA]DPDOAJDdiasdja都会觉得萨科i道德经;
奥地利看到
的骄傲罗迪克
埃德加拉到那里可是东方人好烦好烦
打开的就穷的经纬度你会发
俺的看哈等会我i
那可就都不卡
你看到了
\ 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