Commit 76bf1483 by BellCodeEditor

save project

parent fcff1fa4
Showing with 7 additions and 6 deletions
dict={'张三':10,'李四':20,'猴哥':30,'欧建新':40} dict={'张三':10,'李四':20,'猴哥':30,'欧建新':40}
k=input("您要买什么?") k=input("您要买什么?")
v=input("价钱是什么?")
if k in dict: if k in dict:
if if float(v)>dict[k]:
dict[k]=float(k)
else:
print("您要买的东西是"+v+"元")
else:
dict[k]=float(v)
......
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