Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-1
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
e6ad421e
authored
Apr 12, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
23abe009
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
diy1.py
diy1.py
View file @
e6ad421e
k
=
input
(
"不良少年,你想买什么垃圾食品呀??我们有老八味的佩奇哦"
)
a
=
{
"佩奇"
:
1000
,
"乔治"
:
500
,
"老八"
:
1500
,
"光头强"
:
1000
}
if
k
in
a
:
print
(
"给我"
,
str
(
a
[
k
]),
'元,sb'
)
k
=
{
"张权睿"
:
100
,
"刘韵阳"
:
100
,
"绫波零"
:
99
,
"诸葛亮"
:
10000000000000000000000
}
while
1
:
name
=
input
(
"请输入你的名字:"
)
v
=
int
(
input
(
"请输入你的成绩"
))
if
name
in
k
:
if
v
>
k
[
name
]:
k
[
name
]
=
v
print
(
'你的最高分数为'
+
str
(
v
))
print
(
k
)
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