Commit 8df5315b by BellCodeEditor

save project

parent 2a235630
Showing with 10 additions and 4 deletions
student1 ={"语文":91,"数学"88,"英语":85}
student2 ={"语文":91,"数学"88,"英语":85}
student3 ={"语文":91,"数学"88,"英语":85}
student1={"语文":91,"数学":88,"英语":85}
student2={"语文":94,"数学":82,"英语":81}
student3={"语文":93,"数学":81,"英语":82}
score={'小王':student1,'小李':student2,'小贝':student3}
for i ,a in score["小王"].items():
b=input("你想查谁的成绩")
print("*"*20)
if b in score:
for i ,a in score[b].items():
print(i,a)
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