Commit 3442a90b by BellCodeEditor

save project

parent 83b73772
Showing with 13 additions and 0 deletions
cost={'apple':5,'orange':7,'banana':6}
c=input("你想查什么水果")
b=input("你想查什么价格?")
if c in cost:
if cost[c]>float(b):
print(c+'降价,现在是'+b+'元')
else:
print("加价了现在是"+b+"元")
else:
print("不在")
\ 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