Commit 37c9392a by BellCodeEditor

auto save

parent 3737315b
Showing with 13 additions and 6 deletions
goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6} g1={'语文':95,'数学':98,'英语':94}
goods.pop("农夫山泉") g2={'语文':90,'数学':100,'英语':99}
print(goods) g3={'语文':98,'数学':97,'英语':95}
# 请将"农夫山泉"删掉,并打印出新的商品信息 s={'小明':g1,'小亮':g2,'小刚':g3}
while True:
a=input("谁的成绩")
if a in s:
b=s[a]
for k,v in b.items():
print(k,v)
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