Commit f6764c3d by BellCodeEditor

save project

parent d926cfe3
Showing with 11 additions and 3 deletions
...@@ -14,5 +14,13 @@ student1={'语文':91,'数学':88,'英语':85} ...@@ -14,5 +14,13 @@ student1={'语文':91,'数学':88,'英语':85}
student2={'语文':97,'数学':78,'英语':90} student2={'语文':97,'数学':78,'英语':90}
student3={'语文':95,'数学':89,'英语':95} student3={'语文':95,'数学':89,'英语':95}
score={'悟空':student1,'张三':student2,'李四':student3} score={'悟空':student1,'张三':student2,'李四':student3}
for s,c in score['悟空'].items(): while True:
print(s,c) name=input('名字:')
\ No newline at end of file if name in score:
a=score[name]
print('_'*30)
for k,v in a.items():
print(k,v)
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