Commit 3f927f42 by BellCodeEditor

save project

parent 91148f6f
Showing with 10 additions and 9 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("名字:")
while True:
if name in score: name = input("名字:")
a =score[name] if name in score:
for i,k in a.items(): a =score[name]
print(i,k) for i,k in a.items():
else: print(i,k)
print("输入错误") else:
\ No newline at end of file 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