Commit a70aa28e by BellCodeEditor

save project

parent 9894041d
Showing with 9 additions and 5 deletions
score = {'语文':91,'数学':88,'英语':85} stu1={"chinese":0,"maths":1,"english":2}
stu2={"chinese":3,"maths":4,"english":5}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 stu3={"chinese":6,"maths":7,"english":8}
for i,j in score.items(): w={"stu1":stu1,"stu2":stu2,"stu3":stu3}
print(i,j) n=input("input name ")
info=w[n]
for i,j in info.items():
print(i,j)
\ 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