Commit 8f6225c9 by BellCodeEditor

save project

parent 338d7d9d
Showing with 7 additions and 3 deletions
...@@ -3,5 +3,9 @@ student2={'语文':100,'数学':100,'英语':100} ...@@ -3,5 +3,9 @@ student2={'语文':100,'数学':100,'英语':100}
student3={'语文':98,'数学':90,'英语':89} student3={'语文':98,'数学':90,'英语':89}
score={'小贝':student1,'悟空':student2,'诺依':student3} score={'小贝':student1,'悟空':student2,'诺依':student3}
name=input('姓名:') name=input('姓名:')
for k,v in score[name].items(): print('*'*10)
print(k,v) if name in score:
\ No newline at end of file for k,v in score[name].items():
print(k,v)
else:
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