Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_3
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
0994ed3c
authored
Sep 05, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
bbf2d0b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
diy3.py
diy3.py
View file @
0994ed3c
...
...
@@ -3,15 +3,19 @@ student2 = {'语文': 97, '数学': 98, '英语': 90}
student3
=
{
'语文'
:
95
,
'数学'
:
100
,
'英语'
:
93
}
score
=
{
'沙壁'
:
student1
,
'草泥马'
:
student2
,
'握草'
:
student3
}
name
=
input
(
"名字:"
)
if
name
in
score
:
print
(
"*"
*
30
)
for
k
,
v
in
score
[
name
]
.
items
():
print
(
k
,
v
)
print
(
"*"
*
30
)
else
:
print
(
"没这个死东西,脑残东西,自己的名字都记不住"
)
while
True
:
print
(
"傻逼,查谁"
)
name
=
input
(
"名字:"
)
if
name
in
score
:
print
(
"*"
*
30
)
for
k
,
v
in
score
[
name
]
.
items
():
print
(
k
,
v
)
print
(
"*"
*
30
)
elif
name
==
'q'
:
break
else
:
print
(
"没这个死东西,脑残东西,名字都记不住"
)
# 查询并打印出输入的名字对应的所有科目的成绩
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