Commit 45d0d620 by BellCodeEditor

save project

parent 18048d2e
Showing with 10 additions and 2 deletions
......@@ -2,4 +2,12 @@ student1 = {'语文':0, '数学':0, '英语':0}
student2 = {'语文':0, '数学':0, '英语':0}
student3 = {'语文':0, '数学':0, '英语':0}
score = {'语文老师': student1, '数学老师': student2, '英语老师': student3}
while True
\ No newline at end of file
name = input('姓名:')
print('*'*30)
if name in score:
info=score[name]
for k,v in info.items():
print(k,v)
print('*'*30)
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