Commit a34487c0 by BellCodeEditor

save project

parent f0c715f8
Showing with 27 additions and 0 deletions
s1={'语文':3,'数学':88,'英语':85}
print(s1)
# goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
# goods.pop('农夫山泉')
# print(goods)
# 请将"农夫山泉"删掉,并打印出新的商品信息
s1={'语文':91,'数学':88,'英语':85}
s2={'语文':81,'数学':89,'英语':95}
s3={'语文':97,'数学':98,'英语':84}
score={'a':s1,'b':s2,'c':s3,}
while True:
name=input('输入q退出,名字:')
if name in score:
abcd=score[name]
print('*'*30)
for i,j in abcd.items():
print(i,j)
print('*'*30)
elif name=='q':
break
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