Commit 5262b207 by BellCodeEditor

auto save

parent 9122f011
Showing with 15 additions and 4 deletions
from PIL import Image
import numpy as np
img = Image.open("6x2.png")
print(img)
value = np.array(img)
print(value)
\ No newline at end of file
from PIL import Image
import numpy
import jieba
import wordcloud
w = wordcloud.WordCloud(background_color = "white",font_path = "SimHei.ttf")
with open("python二级考试大纲.txt","r",encoding = "utf-8") as file:
a = file.read()
w.generate(a)
w.to_file("mycloud.png")
\ No newline at end of file
mycloud.png

75.2 KB

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