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
b68daa6f
authored
May 14, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
9dfa9578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
i.py
i.py
0 → 100644
View file @
b68daa6f
dict
=
{
"雄安"
:
78
,
"第一"
:
100
,
"佳宇與"
:
68
,
"武漢"
:
79
}
k
=
input
(
"你叫什麽名字啊?"
)
v
=
input
(
"你的成績是多少啊?"
)
if
k
in
dict
:
if
int
(
v
)
>
dict
[
k
]:
print
(
"恭喜你,"
+
k
+
"同學!你的成績已更新為:"
+
v
)
else
:
print
(
"很遺憾,您的成績未能更改,再接再厲!"
)
else
:
print
(
k
+
"您未進入排行榜,已將您的成績:"
+
v
+
"加入表格"
)
\ 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