Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_7
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
52a76727
authored
Jan 23, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4b5943fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
diy4.py
diy4.py
View file @
52a76727
dict_hero
=
{
"对象"
:
40
,
"静慧"
:
410
,
"你妈"
:
999999999
,
"你爸"
:
9999999
,
"贞子"
:
70
,
"闺蜜"
:
1234891942491490408010940480240
,}
jk
=
{
'刘德华'
:
67.5
,
'王一博'
:
98
,
'范丞丞'
:
91.2
,
'易烊千玺'
:
100
,
'王源'
:
78.5
,
'黄明浩'
:
88
,
'周杰伦'
:
87
}
in
"你妈"
if
k
=
input
(
'请输入你的名字:'
)
print
(
dict_hero
[
"你妈"
])
v
=
input
(
'请输入你的最新成绩:'
)
if
k
in
jk
:
if
int
(
v
)
>
jk
[
k
]:
jk
[
k
]
=
int
(
v
)
print
(
'亲爱的'
+
k
+
'大帅B,恭喜您,成绩已更新为'
+
v
+
'分'
)
else
:
print
(
'亲爱的'
+
k
+
'大帅B,对不起,您成绩太高了,无法输出/(ㄒoㄒ)/~~'
)
else
:
jk
[
k
]
=
int
(
v
)
print
(
'亲爱的'
+
k
+
'大帅B,您的成绩'
+
v
+
'分已上传'
)
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