Commit e2ee8e94 by BellCodeEditor

save project

parent 9c496dcc
Showing with 4 additions and 2 deletions
......@@ -3,4 +3,6 @@
dict_hero = {'可乐':3,'薯片':7,'蛋糕':5,'巧克力':9,'牛奶':8}
k=input("你要什么?")
if k in dict:
print("你的"+k+"需要支付"+str(dict[k])+"元"
\ No newline at end of file
print("你的"+k+"需要支付"+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