Commit 131661b7 by BellCodeEditor

save project

parent 3398c52e
Showing with 9 additions and 3 deletions
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~ # 神奇百货中的已经帮你创建好啦,接下来要看你的了~
dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6} dict= {'可口可乐':3999999999,'旺仔牛奶':499999,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利给':10,'巧克力':6}
\ No newline at end of file buy=input("请输录你要啥")
num=int(input("请输录你要的物品数量"))
if buy in sale:
print("您要的物品为"+"buy"+"数量是:"+str(num)+"价格为"+str(sale[buy])+"总金额是"+str(money))
else:
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