Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson21-diy2
This project
Loading...
Sign in
Toggle navigation
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
0abcd7bc
authored
Apr 26, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
aefdae58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
doglihaoyang.png
my_cloud.py
doglihaoyang.png
View file @
0abcd7bc
81.2 KB
|
W:
|
H:
188 KB
|
W:
|
H:
2-up
Swipe
Onion skin
my_cloud.py
View file @
0abcd7bc
...
@@ -4,10 +4,11 @@ import numpy
...
@@ -4,10 +4,11 @@ import numpy
with
open
(
'python二级考试大纲.txt'
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
'python二级考试大纲.txt'
,
encoding
=
'utf-8'
)
as
f
:
t
=
f
.
read
()
t
=
f
.
read
()
txt_list
img
=
Image
.
open
(
"bell.png"
)
img
=
Image
.
open
(
"bell.png"
)
data
=
numpy
.
array
(
img
)
data
=
numpy
.
array
(
img
)
img_colors
=
wordcloud
.
ImageColorGenerator
(
dat
e
)
img_colors
=
wordcloud
.
ImageColorGenerator
(
dat
a
)
w
=
wordcloud
.
WordCloud
(
background_color
=
"white"
,
w
=
wordcloud
.
WordCloud
(
background_color
=
"white"
,
font_path
=
"SimHei.ttf"
,
font_path
=
"SimHei.ttf"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment