Commit 21abc022 by BellCodeEditor

auto save

parent 5fa32a69
Showing with 1 additions and 1 deletions
dict={"可乐":3,"雪碧":4,"薯片":5,"薯条":6,"果汁":7} dict={"一":3,"二":4,"三":5,"四":6,"果汁":7}
k=input("你想买什么?") k=input("你想买什么?")
if k in dict: if k in dict:
print("你购买的商品是"+k+"你需要支付"+str(dict[k])) print("你购买的商品是"+k+"你需要支付"+str(dict[k]))
......
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