Commit 36ee296b by BellCodeEditor

save project

parent 8b3bb9f2
Showing with 7 additions and 3 deletions
score = {'语文':91,'数学':88,'英语':85}
for i,e in score.items():
score1 = {'语文':91,'数学':88,'英语':85}
score2 = {'语文':88,'数学':88,'英语':85}
score3 = {'语文':81,'数学':88,'英语':85}
c={'诺一':score1,'悟空':score2,'八戒':score3}
Name=input("名字:")
a=c[Name]
for i,e in a.items():
print(i,e)
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
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