Commit 22538e6d by BellCodeEditor

save project

parent 01c48a36
Showing with 11 additions and 0 deletions
student1 = {'语文':10 ,'数学':100,'英语':60}
student2 = {'语文':0 ,'数学':0, '英语':6}
student3 = {'语文':89 ,'数学':91, '英语':80}
score={'坤坤':student1,'蔡徐':student2,'蔡徐坤':student3}
#对字典遍历
print("默认for循环遍历".center(20,"-"))
for i in score:
print(i+'的成绩:')
for j in score[i]:
print(j,score[i][j])
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