Commit b64ac7fb by BellCodeEditor

save project

parent 07de176a
Showing with 28 additions and 2 deletions
import wordcloud import wordcloud
from pil import image
with open('pythonr级考试大纲.txt',encoding='utf-8') as f:
text = f.read()
w = wordclond.wordCloud(background_color="white",
font_path='Simhei.ttf')
w.generate(text)
w = wordcloud.wordcloud(background_color="white")
w.generate("hello word")
w.to_file("mycloud.png") w.to_file("mycloud.png")
from pil import image
import numpy as nump
ing = image.open("6x2.png")
print(img)
valoe = np.array(img)
print(value)
\ No newline at end of file
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