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
e0a5d0c6
authored
Mar 13, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
83b73772
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
er.py
er.py
0 → 100644
View file @
e0a5d0c6
food
=
{
"香蕉"
:
3
,
"西瓜"
:
5
}
k
=
input
(
"写出水果名"
)
p
=
input
(
"写出水果价格"
)
if
k
in
food
:
if
int
(
p
)
<
food
[
k
]:
food
[
k
]
=
int
(
p
)
else
:
print
(
"比之前便宜"
)
else
:
food
[
k
]
=
int
(
p
)
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