Commit 1a45f828 by BellCodeEditor

save project

parent 65efb6a4
Showing with 9 additions and 4 deletions
......@@ -2,11 +2,15 @@ student1={'语文':0,'数学':0,'英语':0}
student2={'语文':1,'数学':1,'英语':1}
student3={'语文':2,'数学':2,'英语':2}
score={'悟空':student1,'诺一':student2,'小贝':student3}
name=input('名字:')
print('*'*100)
if name in score:
while True:
print('按p退出!')
name=input('名字:')
print('*'*100)
if name in score:
score=score[name]
for k,v in score.items():
print(k,v)
else:
elif name=='p':
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