Commit 3f2c7901 by BellCodeEditor

save project

parent e2baedad
Showing with 16 additions and 2 deletions
score = {'语文':91,'数学':88,'英语':85}
for i in score.items():
for i in sscore = {'语文':91,'数学':88,'英语':85}core.items():
print(i)
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
......
a={'语文':91,'数学':250,'英语':250}
b={'语文':93,'数学':10,'英语':85}
c={'语文':54,'数学':0,'英语':88}
score={'悟空':a,'诺依':b,'小贝':c}
name=input("名字:")
for i in items():
print(i)
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