Commit 2392d4ae by BellCodeEditor

save project

parent 24593633
Showing with 7 additions and 0 deletions
...@@ -8,3 +8,9 @@ name = input("名字:") ...@@ -8,3 +8,9 @@ name = input("名字:")
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
print(score[name]) print(score[name])
if name in score:
info=score[name]
for j,k in info.items():
print(j,k)
else:
print("输入的名字有误")
\ 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