Commit 4f54a3f6 by BellCodeEditor

save project

parent fe555890
Showing with 17 additions and 8 deletions
student1 = {"语文":91,"数学":93,"英语":95,} student1 = {"语文":91,"数学":93,"英语":95}
student2 = {"语文":92,"数学":94,"英语"92:,} student2 = {"语文":92,"数学":94,"英语":92}
student2 = {"语文":93,"数学":95,"英语":98,} student3 = {"语文":93,"数学":95,"英语":98}
score= {"悟空"student1: "依诺"student2: "小贝"student3: score= {"悟空":student1,"依诺":student2, "小贝":student3}
name=input("名字")
for k,v in a itmes(): while True:
print(k,v) name=input("名字:")
\ No newline at end of file if name in score:
a = score[name]
print('*'*30)
for k,v in a.items():
print(k,v)
break
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