Commit 09b9b79b by BellCodeEditor

save project

parent 23687b16
Showing with 8 additions and 1 deletions
......@@ -5,6 +5,13 @@ print(dict_hero)
print(dict_hero["猴队长"])
dict_hero["猴七"]=32
dict_hero["猴十"]=25
print(dict_hero)
sp={'可乐':2,'辣条':1,'口香糖':1}
w=input("您想买啥?")
if w in sp:
print("您要的"+w+"一共需要"+str(sp[w])+"元")
else:
print("此商品已售完")
print(dict_hero)
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