Commit ad248641 by BellCodeEditor

save project

parent 66543e70
Showing with 6 additions and 11 deletions
import wordcloud screen.blit(backgrount(0,0))
from PIL import Image screen.blit(road(0,500))
import numpy screen.blit(wukong(0,0))
with open('python二级考试大纲.txt', encoding='utf-8') as f: if rect.x <= 0-rect.width:
text = f.read()
img = Image.open("bell.png") \ No newline at end of file
data = numpy.array(img)
img_colors = wordcloud.ImageColorGenerator(data)
w = wordcloud.wordcloud(background_color="white",font_path='SimHei.ttf')
w.generate("hello word")
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