Commit bad43dc6 by BellCodeEditor

save project

parent 1cdfc607
Showing with 8 additions and 2 deletions
......@@ -2,5 +2,4 @@ dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':27,'猴二':17}
print(dict_hero)
print(dict_hero['猴队长'])
dict_hero['猴队长']=30
print(dict_hero)
print(dict_hero)
dict={'白事可乐':10,'农夫山贼':20,'靓仔牛奶':30,'哇哈哈':40,'老痰酸菜牛肉面':50,}
a=input('你想买什么?')
if a in dict:
print('您的'+a+'需要支付'+str(dist[a])+'元')
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