Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_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
75a78468
authored
2 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
31f5cf7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
diy2.py
diy2.py
View file @
75a78468
score
=
{
'语文'
:
59.99999
,
'数学'
:
59.99999999
,
'英语'
:
59.9999999999999
}
for
e
,
r
in
score
.
items
():
print
(
e
,
r
)
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
s1
=
{
'语文'
:
545
,
'数学'
:
574
,
'英语'
:
444
}
s2
=
{
'语文'
:
463
,
'数学'
:
456
,
'英语'
:
345
}
s3
=
{
'语文'
:
59.999999999999
,
'数学'
:
59.9999999999
,
'英语'
:
59.99999999999
}
s
=
{
'老六'
:
s1
,
'老八'
:
s2
,
'老王'
:
s3
}
while
True
:
n
=
input
(
'輗訞餷誰?????'
)
l
=
s
[
n
]
for
j
,
k
in
l
.
items
():
print
(
j
,
k
)
This diff is collapsed.
Click to expand it.
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