Commit b6197f14 by BellCodeEditor

save project

parent 2fa7ad74
Showing with 7 additions and 5 deletions
import wordcloud import wordcloud
from PIL import Image
import numpy with open('python二级考试大纲.txt', encoding='utf-8') as f:
import jieba text = f.read()
\ No newline at end of file w = wordcloud.WordCloud(background_color='balck',
font_path='SimHei.ttf')
w.generate(text)
w.to_file('mycloud.png')
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