Commit 1f0ed8b2 by BellCodeEditor

save project

parent 83b73772
Showing with 17 additions and 0 deletions
a={}
while True:
k=input("查询什么水果?")
v=float(input("多少钱"))
if k in a:
if a[k]>v:
print("降价了")
a[k]=v
elif a[k]==v:
print("不变")
else:
print("涨价了")
a[k]=v
else:
a[k]=v
print(a)
\ 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