Commit 9ce45f8d by BellCodeEditor

auto save

parent a15577c0
Showing with 14 additions and 0 deletions
student1 = {'语文':0, '数学':0, '英语':0}
student2 = {'语文':0, '数学':0, '英语':0}
student3 = {'语文':0, '数学':0, '英语':0}
score = {'语文老师': student1, '数学老师': student2, '英语老师': student3}
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