Commit 60532947 by BellCodeEditor

save project

parent 5fe6993c
Showing with 2 additions and 1 deletions
......@@ -3,7 +3,8 @@
# dict_hero["猴七"]=32
# dict_hero["猴十"]=25
# print(dict_hero)
dict={"可口可乐":4,}
dict={"可口可乐":4,"奥利奥":5,"农夫山泉":2,"果粒橙":4}
k=input("请问你想要买什么?")
if k in dict:
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