Commit 3154ea9b by BellCodeEditor

save project

parent 93eed683
Showing with 3 additions and 1 deletions
...@@ -8,8 +8,9 @@ name = input("名字:") ...@@ -8,8 +8,9 @@ name = input("名字:")
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
if name in score: if name in score:
print("*"*30)
for a,b in score[name].items(): for a,b in score[name].items():
print("*"*10)
print(a,b) print(a,b)
print("*"*30)
else: else:
print("查询错误,无此人") 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