Commit f3650fb0 by BellCodeEditor

auto save

parent b2919f66
Showing with 14 additions and 8 deletions
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~ steamer={"第一格":"猪八戒"}
dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
k=input("请输入要购买的商品名称:") steamer["第一格"]="唐三藏"
if k in dict:
print("您想要的"+k+"一共需要支付"+str(dict[k])+"元") steamer["第二格"]="假行者"
else:
print("神奇百货暂无您想要的商品,请敬请期待噢!") steamer["第三格"]="沙和尚"
\ No newline at end of file
steamer["第四格"]="猪八戒"
print(steamer)
print(steamer["第四格"])
\ 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