Commit 3f927f42 by BellCodeEditor

save project

parent 91148f6f
Showing with 5 additions and 3 deletions
...@@ -5,11 +5,12 @@ score = {'12': student1, '89': student2, '00': student3} ...@@ -5,11 +5,12 @@ score = {'12': student1, '89': student2, '00': student3}
name = input("名字:")
if name in score: while True:
name = input("名字:")
if name in score:
a =score[name] a =score[name]
for i,k in a.items(): for i,k in a.items():
print(i,k) print(i,k)
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