ADD file via upload

master
pvj5glq9o 3 years ago
parent 13ac0f70b8
commit d75afcbdf3

@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
import wordcloud
def Print_picture():
'''
输出词云图
'''
fb = open('Sort.txt', 'r', encoding='utf-8')
txt = fb.read()
fb.close()
w = wordcloud.WordCloud(font_path='msyhbd.ttc',
width=800,
height=500,
background_color='white')
w.generate(txt)
w.to_file('词云图.png')
print('\n=====图片创建成功!=====\n')
Loading…
Cancel
Save