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
40e76f8a
authored
2 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d2d09741
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
1.py
1.py
View file @
40e76f8a
...
...
@@ -2,6 +2,13 @@ student1={"语文":71,"数学":78,"英语":90}
student2
=
{
"语文"
:
1
,
"数学"
:
2
,
"英语"
:
3
}
student3
=
{
"语文"
:
7
,
"数学"
:
3
,
"英语"
:
1
}
score
=
{
"悟空"
:
student1
,
"一诺"
:
student2
,
"小贝"
:
student3
}
info
=
score
[
"悟空"
]
for
i
,
e
in
info
.
items
():
print
(
i
,
e
)
\ No newline at end of file
name
=
input
(
"请输入名字"
)
info
=
score
[
name
]
if
name
in
score
:
print
(
"*"
*
30
)
for
k
,
v
in
info
.
items
():
print
(
k
,
v
)
print
(
"*"
*
30
)
else
:
print
(
"No have person!"
)
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