Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-5
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
93c42c05
authored
Nov 09, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c63ee3c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
借记卡.py
借记卡.py
View file @
93c42c05
score
=
{
"浩然"
:
29
,
"斗王"
:
45
,
"仅仅"
:
90
}
score
=
{
"浩然"
:
29
,
"斗王"
:
45
,
"仅仅"
:
90
}
...
...
@@ -2,9 +2,10 @@ score={"浩然":29,"斗王":45,"仅仅":90}
s
=
input
(
"你的名字叫什么?"
)
j
=
input
(
"你的成绩是多少?"
)
if
s
in
score
:
if
int
(
v
)
>
score
[
j
]
if
int
(
j
)
>
score
[
s
]:
score
[
s
]
=
int
[
j
]
else
:
print
(
'你的成绩已更新'
)
else
:
int
(
v
)
=
score
[
j
]
score
[
s
]
=
int
[
j
]
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