Commit a7f07afd by BellCodeEditor

save project

parent 43cc1b52
Showing with 8 additions and 3 deletions
...@@ -5,8 +5,12 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -5,8 +5,12 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
name = input("名字:") name = input("名字:")
print('*'*10)
into=score[name] if name in score:
for k,l in into.items(): into=score[name]
print(k,l) for k,l in into.items():
print(k,l)
else:
print('名字有误')
print('*'*10) print('*'*10)
\ 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