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
f95c25ae
authored
2 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7406cdc9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
1.py
1.py
View file @
f95c25ae
...
@@ -3,12 +3,15 @@ student2={"语文":1,"数学":2,"英语":3}
...
@@ -3,12 +3,15 @@ student2={"语文":1,"数学":2,"英语":3}
student3
=
{
"语文"
:
7
,
"数学"
:
3
,
"英语"
:
1
}
student3
=
{
"语文"
:
7
,
"数学"
:
3
,
"英语"
:
1
}
score
=
{
"悟空"
:
student1
,
"一诺"
:
student2
,
"小贝"
:
student3
}
score
=
{
"悟空"
:
student1
,
"一诺"
:
student2
,
"小贝"
:
student3
}
name
=
input
(
"请输入名字"
)
name
=
input
(
"请输入名字"
)
info
=
score
[
name
]
while
True
if
name
in
score
:
if
name
in
score
:
info
=
score
[
name
]
print
(
"*"
*
30
)
print
(
"*"
*
30
)
for
k
,
v
in
info
.
items
():
for
k
,
v
in
info
.
items
():
print
(
k
,
v
)
print
(
k
,
v
)
print
(
"*"
*
30
)
print
(
"*"
*
30
)
else
:
elif
name
=
"q"
:
break
else
:
print
(
"No have person!"
)
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