Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson21-diy1
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
6330e273
authored
Sep 16, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
6b1fbc15
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
4 deletions
MINGLIUB.TTC
kkk.py
my_cloud.py
mycloud.png
python二级考试大纲.txt
MINGLIUB.TTC
0 → 100644
View file @
6330e273
File added
kkk.py
0 → 100644
View file @
6330e273
from
PIL
import
Image
import
numpy
as
np
img
=
Image
.
open
(
'6x2.png'
)
print
(
img
)
value
=
np
.
array
(
img
)
print
(
value
)
\ No newline at end of file
my_cloud.py
View file @
6330e273
import
wordcloud
\ No newline at end of file
import
wordcloud
w
=
wordcloud
.
WordCloud
(
background_color
=
'white'
,
font_path
=
'MINGLIUB.TTC'
)
with
open
(
r'c:\Users\12227\Documents\level3-lesson21-diy1\python二级考试大纲.txt'
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
text
=
f
.
read
()
w
.
generate
(
text
)
w
.
to_file
(
'mycloud.png'
)
\ No newline at end of file
mycloud.png
0 → 100644
View file @
6330e273
15 KB
python二级考试大纲.txt
View file @
6330e273
###基本
要求
###基本
要求
...
...
@@ -29,7 +29,7 @@
3.变量的作用域:局部变量和全局变量。
五、组合数据类型
1.组合数据类型的基本概念
2.列表类型:定义、索引、切片。
2.列表类型:定义、索引、切片。
_
3.列表类型的操作:列表的操作函数、列表的操作方法
4.字典类型:定义、索引。
5.字典类型的操作:字典的操作函数、字典的操作方法。
...
...
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