Commit b3205640 by BellCodeEditor

save project

parent 4a5b0c3a
Showing with 19 additions and 6 deletions
a1={'w':23,'z':45,'t':65}
a2={'w':23,'z':45,'t':65}
a3={'w':23,'z':45,'t':65}
score={'d':a1,'r':a2,'u':a3}
while True :
print("输如名子。按Q退出")
name=input("名子。/n")
if name in score :
a = score[name]
print("*"*30)
for k,y in a.items():
print(k,y)
break
elif name="q":
break
else:
print("输入错误")
goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
good=goods.pop("农夫山泉")
print(good)
# 请将"农夫山泉"删掉,并打印出新的商品信息
print(goods)
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