Commit 47483010 by BellCodeEditor

auto save

parent b7498cbe
Showing with 39 additions and 0 deletions
...@@ -6,6 +6,38 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -6,6 +6,38 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
while True : while True :
name = input("名字:") name = input("名字:")
......
score1={"语文":100,"数学":120,"英语":110}
score2={"语文":120,"数学":130,"英语":119}
score3={"语文":98,"数学":117,"英语":105}
scores={"王旭":score1,"李飞":score2,"胡鹏":score3}
for m,n in scores.items():
print(m,n)
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