Commit 6ec5442e by BellCodeEditor

save project

parent b1ae1015
Showing with 3 additions and 0 deletions
import wordcloud
from PIL import Image
import numpy
import jieba
with open("python二级考试大纲.txt",'r',encoding="utf-8") as f1:
nr=f1.read()
txt=jieba.lcut(nr)
nr=" ".join(txt)
img=Image.open("alice.png")
data=numpy.array(img)
img_colors=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