Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_1
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
430f2d80
authored
Apr 10, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
3e7e330b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
2.py
2.py
0 → 100644
View file @
430f2d80
z1
=
{
'语文'
:
91
,
'数学'
:
88
,
'英语'
:
85
}
z2
=
{
'语文'
:
3
,
'数学'
:
4
,
'英语'
:
-
10
}
z3
=
{
'语文'
:
0.1
,
'数学'
:
0.5
,
'英语'
:
-
1000
}
scores
=
{
'悟空'
:
z1
,
'老逼登'
:
z2
,
'xxx'
:
z3
}
while
True
:
print
(
"退出摁q"
)
name
=
input
(
"sb的名字:"
)
print
(
"*"
*
30
)
if
name
in
scores
:
info
=
scores
[
name
]
for
k
,
v
in
info
.
items
():
print
(
k
,
v
)
print
(
"*"
*
30
)
elif
name
==
"q"
:
break
else
:
print
(
"你tm填错了,是一个学校吗?眼睛长哪了?再jb输入一遍"
)
print
(
"*"
*
30
)
print
(
"结束"
)
print
(
"*"
*
30
)
\ 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