Commit 75a187a1 by BellCodeEditor

save project

parent 60532947
Showing with 1 additions and 1 deletions
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# dict_hero["猴十"]=25 # dict_hero["猴十"]=25
# print(dict_hero) # print(dict_hero)
dict={"可口可乐":4,"奥利奥":5,"农夫山泉":2,"果粒橙":4} dict={"可口可乐":4,"奥利奥":5,"农夫山泉":2,"果粒橙":4,"乐事薯片":5,"沙嗲牛肉干":10}
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