Commit 3d64c7e6 by BellCodeEditor

auto save

parent a9c38d39
Showing with 22 additions and 0 deletions
......@@ -2,5 +2,27 @@ goods = {'å¯å£å¯ä¹':3,'旺仔牛奶':4,'农夫山泉':1,'è¾£æ¡':3,'巴西çƒ
# 请将"农夫山泉"删掉,并打印出新的商品信息
goods.pop('农夫山泉')
print(goods)
score = {'语文':91,'数学':88,'英语':85}
for k,v in score.items():
print(k,v)
for k in score.keys():
print(k)
for i in score:
date=score[i]
print(date)
student1 = {'语文': 91, '数学': 88, '英语': 85}
student2 = {'语文': 97, '数学': 98, '英语': 90}
student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
name = input("请输入要查询的名字:")
info = score[name]
for k,v in info.items():
print(k,v)
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