Commit a4b10424 by BellCodeEditor

save project

parent 060c375f
Showing with 5 additions and 4 deletions
...@@ -3,9 +3,9 @@ ask = input("请问您想买东西吗?") ...@@ -3,9 +3,9 @@ ask = input("请问您想买东西吗?")
if ask == "想": if ask == "想":
for i in range(len(box)): for i in range(len(box)):
ask1 = input("请问您想买什么?") ask1 = input("请问您想买什么?")
if ask1 in box: if ask1 in box:
print("需要",box[ask1],"元") print("需要",box[ask1],"元")
else: else:
print("不好意思,暂时缺货") print("不好意思,暂时缺货")
else: else:
print("byebye") 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