Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-2
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
2437ed9c
authored
Mar 02, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
76fbadde
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
quiz.py
s.py/hun.py
quiz.py
View file @
2437ed9c
dict_hero
=
{
'赵一'
:
30
,
'丁二'
:
37
,
'孙五'
:
52
,
'王猛'
:
89
,
'周亮'
:
98
}
dict_hero
[
"孙五"
]
=
150
print
(
dict_hero
)
dict_hero
[
"师傅"
]
=
"唐僧"
print
(
dict_hero
)
if
'师傅'
in
dict_hero
:
print
(
"师傅在"
)
\ No newline at end of file
score
=
{
'语文'
:
91
,
'数学'
:
88
,
'英语'
:
85
}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印
for
k
,
v
in
score
.
items
():
print
(
k
,
v
)
s.py/hun.py
View file @
2437ed9c
import
turtle
pen
=
turtle
.
Pen
\ No newline at end of file
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