Commit aa809b81 by BellCodeEditor

auto save

parent f75f1d94
Showing with 9 additions and 2 deletions
......@@ -10,4 +10,11 @@
# print(list_hero)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
hp = {'可乐':9,'雪碧':6,'薯片':5,'烤鸡翅':5,'巧克力':4}
\ No newline at end of file
hp = {'可乐':9,'雪碧':6,'薯片':5,'烤鸡翅':5,'巧克力':4,}
k = input('你要些什么?')
if k in hp:
prink("你要买的东西"+k+"需要支付"+str(hp[k])+"元")
else:
prink("神奇百货没有该物品,该物品以买完")
\ 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