Commit bad43dc6 by BellCodeEditor

save project

parent 1cdfc607
Showing with 7 additions and 1 deletions
......@@ -3,4 +3,3 @@ print(dict_hero)
print(dict_hero['猴队长'])
dict_hero['猴队长']=30
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