Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / pygame_lesson10_diy2

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 7da1ed95 authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent d5fe6cdf
Hide whitespace changes
Inline Side-by-side
Showing with 28 additions and 0 deletions
  • 1.py
  • hero2.png
  • mycloud.png
  • qq.txt
1.py 0 → 100644
View file @ 7da1ed95
import wordcloud
from PIL import Image
import numpy
with open('qq.txt',encoding="utf-8") as f:
text=f.read()
img=Image.open("hero2.png")
data=numpy.array(img)
w=wordcloud.WordCloud(background_color="white",font_path="STKAITI.TTF",mask=data)
w.generate(text)
w.to_file("mycloud.png")
\ No newline at end of file
This diff is collapsed. Click to expand it.
hero2.png 0 → 100644
View file @ 7da1ed95
hero2.png

10.9 KB

This diff is collapsed. Click to expand it.
mycloud.png 0 → 100644
View file @ 7da1ed95
mycloud.png

4.22 KB

This diff is collapsed. Click to expand it.
qq.txt 0 → 100644
View file @ 7da1ed95
ghohdohdihdfb
afhisdfhsjflw
sdhjkfnslkc
sfbjkdfnlsd
sdknfl
jdnadkm;
DSADJA]DPDOAJDdiasdja都会觉得萨科i道德经;
奥地利看到
的骄傲罗迪克
埃德加拉到那里可是东方人好烦好烦
打开的就穷的经纬度你会发
俺的看哈等会我i
那可就都不卡
你看到了
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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