Commit d8b51d3a by BellCodeEditor

save project

parent bc54c304
Showing with 8 additions and 0 deletions
......@@ -17,3 +17,4 @@ print(dict_hero['猴七'])
dict_hero['猴十']=25
print(dict_hero['猴十'])
print(dict_hero)
if '猴五'
dict={'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥力奥':10}
k=input("要啥?")
if k in dict:
print(str(dict[k]),'块')
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