Commit 1e3b75fd by BellCodeEditor

auto save

parent c1c571b4
Showing with 2 additions and 2 deletions
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~ # 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~
dict= {'祺朔':'白送','李嘉懿':'白送','孙悟空':1,'贝利亚':3,'盘古':2,'阿尔宙斯':4,'罗辑':5,'贝尔编程':10,'售货机':'(不买,才怪)100'} dict= {'祺朔':'白送','李嘉懿':'白送','孙悟空':1,'贝利亚':3,'盘古':2,'阿尔宙斯':4,'罗辑':5,'贝尔编程':10,'售货机':'(不买,才怪)100'}
j=input("你要买什么?") j=input("你要买什么?")
if j in dict: if j in dict:
print('您要买的商品'+j+'要'+str(dict[j])+'元') print('您要买的商品'+j+'要'+str(dict[j]))
else: else:
print("该物品在万界的百度超市仍处于短缺状态,推荐您看看百度超市") print("该物品在万界的百度超市仍处于短缺状态,推荐您看看百度超市")
......
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