Commit 829eb287 by BellCodeEditor

save project

parent 409af509
Showing with 11 additions and 0 deletions
fruit = {'苹果':10,'梨子':12,'栗子':20,'李子':8}
f = input("水果名称")
v = int(input("今日水果价格"))
if v > fruit[f]:
print('价格升高,过两天再买吧')
else:
fruit[f] = v
print('快买!便宜')
print(fruit)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment