Commit 060c375f by BellCodeEditor

save project

parent e0053480
Showing with 12 additions and 0 deletions
box = {'雀巢咖啡':15,'百事可乐':3,'可口可乐':3,'健力宝':5,'尖叫':7,'雪碧':3,'脉动':7,'矿泉水':2}
ask = input("请问您想买东西吗?")
if ask == "想":
for i in range(len(box)):
ask1 = input("请问您想买什么?")
if ask1 in box:
print("需要",box[ask1],"元")
else:
print("不好意思,暂时缺货")
else:
print("byebye")
\ 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