Commit e7fb1ab3 by BellCodeEditor

auto save

parent c1e3e62b
Showing with 5 additions and 9 deletions
#from wordcloud import * import wordcloud
from PIL import Image
from numpy import array w = wordcloud.WordCloud(background_color="white",font_path=r"‪C:\Windows\Fonts\STCAIYUN.TTF")
# w = WordCloud(background_color="white",font_path=r"‪C:\Windows\Fonts\STCAIYUN.TTF") w.generate("1234567890abcdefghijklmnopqrstuvwxyz")
# w.generate("1234567890abcdefghijklmnopqrstuvwxyz") w.to_file(r"C:\Users\张国耀\Desktop\mycloud.png")
# w.to_file(r"C:\Users\张国耀\Desktop\mycloud.png")
img=Image.open("6x2.png")
print(array(img))
\ 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