Commit 7f02c26b by BellCodeEditor

save project

parent 6dbd67ab
Showing with 3 additions and 10 deletions
......@@ -3,17 +3,10 @@ student2 = {'语文': 97, '数学': 98, '英语': 90}
student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
for k,v in score.items():
print(k,v)
#print(k,v)
for k1,v1 in v.items():
print(k1,v1)
for k,v in score.student2:
print(k,v)
for k2,v2 in v.items():
print(k2,v2)
for k,v in score.student3:
print(k,v)
for k3,v3 in v.items():
print(k3,v3)
print(k,k1,v1)
# 查询并打印出输入的名字对应的所有科目的成绩
while True :
......
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