Commit c8ccd66c by BellCodeEditor

save project

parent 512e78a6
Showing with 5 additions and 2 deletions
qw={'语文':1,'数学':0,'英语':0}
we={'语文':1,'数学':0,'英语':0}
er={'语文':1,'数学':0,'英语':0}
new=input("您要查询的名字:")
score = {'sb':qw,'sd':we,'we':er}
info=score[new]
score = {'sb':qw,'sd':we,'we':er}
for w,e in dict.items(score):
for w,e in info.items():
print(w,e)
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
......
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