Commit bf8d7ca4 by BellCodeEditor

save project

parent 95e4fec6
Showing with 17 additions and 2 deletions
from PIL import Image
import numpy as np
img=Image.open("6x2.png")
print(img)
value=np.array(img)
print(value)
import wordcioud import wordcioud
w=wordcioud.wordcloud(background_color="red",font_path='simhei.ttf') from PIL import Image
w.generate("hello world")
import numpy
wite open('python二级考试大纲.txt',encoding='utf-8')as f:text=f.read()
Img=Image.open("bell.png")
w=wordcioud.wordcloud(background_color="red",font_path='simhei.ttf',mask=data,color_func=img_colors)
w.generate(text)
w.to_file("mycloud.png") w.to_file("mycloud.png")
......
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