Commit c7505ce7 by BellCodeEditor

auto save

parent 69bd7d87
Showing with 3 additions and 3 deletions
......@@ -3,10 +3,10 @@ from PIL import Image
import numpy
import jieba
with open("python二级考试大纲.txt",'r',encoding='utf-8') as f:
with open('python二级考试大纲.txt','r',encoding='utf-8') as f:
text = f.read()
text_list = jieba.lcut(text)
text = "".join(text_list)
#text_list = jieba.lcut(text)
#text = "".join(text_list)
img = Image.open("bell.png")
data = numpy.array(img)
img_color = wordcloud.ImageColorGenerator(data)
......
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