Commit f9b5e6c7 by BellCodeEditor

save project

parent 6c8ae7d1
Showing with 6 additions and 2 deletions
...@@ -6,4 +6,9 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -6,4 +6,9 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True: while True:
name=input("名字是啥?") name=input("名字是啥?")
if name in score: if name in score:
print a=score[name]
\ No newline at end of file for k,v in a.items():
print(k,v)
break
else:
print("尼叔挫勒")
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