Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_4
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
8ef1161e
authored
Feb 19, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
1aef39c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
diy3.py
diy3.py
View file @
8ef1161e
...
@@ -2,13 +2,18 @@ student1 = {'冷兵器基础与进阶': 91, '小型火药兵器拼装': 88, '军
...
@@ -2,13 +2,18 @@ student1 = {'冷兵器基础与进阶': 91, '小型火药兵器拼装': 88, '军
student2
=
{
'冷兵器基础与进阶'
:
97
,
'小型火药兵器拼装'
:
98
,
'军舰基本原理'
:
90
}
student2
=
{
'冷兵器基础与进阶'
:
97
,
'小型火药兵器拼装'
:
98
,
'军舰基本原理'
:
90
}
student3
=
{
'冷兵器基础与进阶'
:
95
,
'小型火药兵器拼装'
:
100
,
'军舰基本原理'
:
93
}
student3
=
{
'冷兵器基础与进阶'
:
95
,
'小型火药兵器拼装'
:
100
,
'军舰基本原理'
:
93
}
score
=
{
'悟空'
:
student1
,
'诺依'
:
student2
,
'小贝'
:
student3
}
score
=
{
'悟空'
:
student1
,
'诺依'
:
student2
,
'小贝'
:
student3
}
name
=
input
(
"名字"
)
while
True
:
if
name
in
score
:
print
(
'退出请输入终末之诗最后一句话'
)
name
=
input
(
"名字"
)
if
name
in
score
:
print
(
'*'
*
123
)
print
(
'*'
*
123
)
for
a
,
b
in
score
[
name
]
.
items
():
for
a
,
b
in
score
[
name
]
.
items
():
print
(
name
,
a
,
b
)
print
(
name
,
a
,
b
)
print
(
'*'
*
123
)
print
(
'*'
*
123
)
else
:
elif
name
==
"该醒了"
:
print
(
'已退出(扎心了吗?)'
)
break
else
:
print
(
"这人没了"
)
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