Commit c0570e14 by BellCodeEditor

save project

parent 9ce45f8d
Showing with 14 additions and 9 deletions
...@@ -2,12 +2,17 @@ student1 = {'语文':0, '数学':0, '英语':0} ...@@ -2,12 +2,17 @@ student1 = {'语文':0, '数学':0, '英语':0}
student2 = {'语文':0, '数学':0, '英语':0} student2 = {'语文':0, '数学':0, '英语':0}
student3 = {'语文':0, '数学':0, '英语':0} student3 = {'语文':0, '数学':0, '英语':0}
score = {'语文老师': student1, '数学老师': student2, '英语老师': student3} score = {'语文老师': student1, '数学老师': student2, '英语老师': student3}
name = input('姓名:') while 1:
print('*'*30) print('欢迎使用,P键退出')
if name in score: name = input('姓名:')
info=score[name]
for k,v in info.items():
print(k,v)
print('*'*30) print('*'*30)
else: if name in score:
print('错误') info=score[name]
\ No newline at end of file for k,v in info.items():
print(k,v)
print('*'*30)
elif name == p:
print('再见')
break
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