Commit a8c70bdc by BellCodeEditor

auto save

parent 30bc2cd1
Showing with 3 additions and 16 deletions
import wordcloud
from PIL import Image
import numpy
with open('python二级考试大纲.txt',encoding='utf-8') as f:
text = f.read()
img = Image.open("bell.png")
data = numpy.array(img)
w = wordcloud.WordCloud(background_color="white",font_path='SimHei.ttf',mask=data)
w.generate(text)
w.to_file("myclonud.png")
student1={'语文':91,'数学':88,'英语':85,}
student2={'语文':97,'数学':98,'英语':90,}
student3={'语文':95,'数学':100,'英语':93,}

79.5 KB | W: | H:

207 KB | W: | H:

myclonud.png
myclonud.png
myclonud.png
myclonud.png
  • 2-up
  • Swipe
  • Onion skin
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