Commit 1a45f828 by BellCodeEditor

save project

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