ADD file via upload

main
pfc8hp2r6 11 months ago
parent b3e194e5e2
commit 2504c62352

@ -0,0 +1,19 @@
import wordcloud
import jieba
f= open('D:\danmucrawler\danmupapa\danmu.txt',encoding='utf-8')
text=f.read()
print(text)
llist=jieba.lcut(text)
string=''.join(llist)
wc=wordcloud.WordCloud(
width=1000,
height=500,
background_color='white',
font_path='msyh',
scale=15
)
wc.generate(string)
wc.to_file('ciyun.png')
Loading…
Cancel
Save