Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-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
b1563765
authored
Jul 11, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
061f31ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
diy.py
diy.py
View file @
b1563765
score
=
(
'1'
:
12
,
'2'
:
12
,
'3'
:
12
,
'4'
:
12
)
k
=
input
(
'请你输入你的姓名'
)
=
input
(
'请你输入你的成绩'
)
if
k
in
dict
:
if
k
[]
\ No newline at end of file
student1
=
{
'1'
:
77
,
'2'
:
68
,
'3'
:
3600
}
student2
=
{
'1'
:
99
,
'2'
:
99
,
'3'
:
6005
}
student3
=
{
'1'
:
99
,
'2'
:
99
,
'3'
:
5500
}
score
=
{
'px'
:
student1
,
'fqstyjfl'
:
student2
,
'wdqcmyhh'
:
student3
}
while
True
:
name
=
input
(
"冥渍:"
)
if
name
in
score
:
syx
=
score
[
name
]
print
(
'*'
*
30
)
for
s
,
y
in
syx
.
items
():
print
(
s
,
y
)
else
:
print
(
"仁济"
)
\ 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