Commit 5fe6993c by BellCodeEditor

save project

parent 6b24a700
Showing with 2 additions and 1 deletions
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
dict={"可口可乐":4,} dict={"可口可乐":4,}
k=input("请问你想要买什么?") k=input("请问你想要买什么?")
if k in dict: if k in dict:
print("你选择的"+k+"的价格为"+str(dict[k]))+"元") print("你选择的"+k+"的价格为"+str(dict[k])+"元")
else: else:
print("神奇百货暂时缺失此物品,请下次再来!") 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