Commit 57522aa9 by BellCodeEditor

save project

parent b091d9db
Showing with 12 additions and 6 deletions
dict={'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥力奥':10}
k=input("要啥?")
dict={'苹果':5,'山竹':12.9,'香蕉':2.4,'荔枝':9.3,'桂圆':,'蓝莓':10,'李子':}
k=input("要啥?")
a=input("多少钱")
if k in dict:
print(str(dict[k]),'块')
else:
print("没有了。")
\ No newline at end of file
if float[a]>dict[k]:
dict[k]=float(a)
print('多了','v'+'块')
  else:
print("少了,不买")
else:
  dict[k]=float(a)
  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