Commit e425f82d by BellCodeEditor

save project

parent ec54421f
Showing with 18 additions and 3 deletions
palayer = input("请出拳(石头,剪刀,布)") # dic={'语文':95.5,'数学':99.5,'英语':98}
print("玩家出拳:"+palayer) # a=dic['语文']
\ No newline at end of file # print(a)
# dic['数学']=100
# print(dic)
# dic['物理']=150
# print(dic)
# if'物理'in dic:
# print(dic['物理'])
dict={'可口可乐':100,'雪碧':50,'辣条':0.00001,'芬达':0.81}
while True:
k=input("请输入需要的物品名:")
if k in dict:
print("你想要的"+k+'需要支付'+str(dict[k])+"元!")
print("-"*30)
else:
print("没有货")
print('-'*30)
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