Commit f6049c61 by BellCodeEditor

save project

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