Commit 5b24220e by BellCodeEditor

save project

parent 5c2ffa4e
Showing with 3 additions and 3 deletions
...@@ -8,9 +8,10 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -8,9 +8,10 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True: while True:
k=input("请输入名字:") k=input("请输入名字:")
if k in score: if k in score:
print("*"*30)
for i,j in score[k].items(): for i,j in score[k].items():
print(i,j) print(i,j)
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