Commit 67419427 by BellCodeEditor

save project

parent 2b67195b
Showing with 9 additions and 2 deletions
score = {'语文':91,'数学':88,'英语':85}
for k,v in score.items():
score1 = {'语文':91,'数学':88,'英语':85}
score2 = {'语文':93,'数学':97,'英语':60}
score3 = {'语文':95,'数学':100,'英语':80}
score={'悟空':score1,'诺伊':score2,'小贝':score2}
name=input('名字:')
b=score[name]
print('*'*30)
for k,v in b.items():
print(k,v)
print('*'*30)
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
......
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