Commit 3ad9ffc6 by BellCodeEditor

save project

parent 037c5a72
Showing with 9 additions and 5 deletions
score = {'语文':91,'数学':88,'英语':85}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
for s,b in score.items():
print(s,b)
a={"语文":80,"数学":90,"英语":89}
b={"语文":88,"数学":78,"英语":90}
c={"语文":87,"数学":96,"英语":99}
d={"悟空":a,"诺依":b,"小贝":c}
z=input("输入姓名")
t=d[z]
for s,b in t.items():
print(s,b)
\ 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