Commit 2d57ce4f by BellCodeEditor

save project

parent 788b3a52
Showing with 8 additions and 7 deletions
score={'语文':91,'数学':88,'英语':85} #score={'语文':91,'数学':88,'英语':85}
score.items() #score.items()
print(score) #print(score)
student1={'语文':91,'数学':88,'英语':85} student1={'语文':91,'数学':88,'英语':85}
student2={'语文':94,'数学':68,'英语':65} student2={'语文':94,'数学':68,'英语':65}
student3={'语文':96,'数学':98,'英语':45} student3={'语文':96,'数学':98,'英语':45}
score={'悟空':student1,'诺依':student2,'小贝':student3} score={'悟空':student1,'诺依':student2,'小贝':student3}
name=input("名字:") name=input("名字:")
score['悟空']
info=score[key] info=score[name]
for k,v in for k,v in info.items():
\ No newline at end of file print(k,v)
\ 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