Commit c7505ce7 by BellCodeEditor

auto save

parent 69bd7d87
Showing with 3 additions and 3 deletions
...@@ -3,10 +3,10 @@ from PIL import Image ...@@ -3,10 +3,10 @@ from PIL import Image
import numpy import numpy
import jieba 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 = f.read()
text_list = jieba.lcut(text) #text_list = jieba.lcut(text)
text = "".join(text_list) #text = "".join(text_list)
img = Image.open("bell.png") img = Image.open("bell.png")
data = numpy.array(img) data = numpy.array(img)
img_color = wordcloud.ImageColorGenerator(data) 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