diy2.py
380 Bytes
score = {'语文':91,'数学':88,'英语':85}
for key,value in score.items():
print(key,value)
for key in score.keys():
print(key)
for value in score.values():
print(value)
print("科目 分数")
for key,value in score.items():
print(key,value)
name=input()
print(name)
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来