Commit 65efb6a4 by BellCodeEditor

save project

parent aa56aa28
Showing with 8 additions and 4 deletions
......@@ -3,6 +3,10 @@ student2={'语文':1,'数学':1,'英语':1}
student3={'语文':2,'数学':2,'英语':2}
score={'悟空':student1,'诺一':student2,'小贝':student3}
name=input('名字:')
info=score[name]
for k,v in score.items():
print(k,v)
\ No newline at end of file
print('*'*100)
if name in score:
score=score[name]
for k,v in score.items():
print(k,v)
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