Commit bd47d08c by BellCodeEditor

save project

parent f070ca82
Showing with 7 additions and 1 deletions
...@@ -5,9 +5,15 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -5,9 +5,15 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
name = input("名字:") name = input("名字:")
for k,v in score[name].items(): if name!="悟空" and name!="小贝" and name!="诺依":
print("查无此人")
if name=="悟空" or name=="小贝" or name=="诺依":
for k,v in score[name].items():
print("*"*30)
print(k,v) print(k,v)
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
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