Commit eed65c60 by BellCodeEditor

save project

parent 5f4227a7
Showing with 16 additions and 0 deletions
student1 = {'语文':88,'数学':75,'英语':60}
student2 = {'语文':95,'数学':99,'英语':88}
student3 = {'语文':0,'数学':100,'英语':84}
score = {'悟空':student1,'诺依':student2,'小贝':student3}
while True:
name = input('查询姓名:')
if name in score:
a=score[name]
print('*'*30)
for k,v in a.items():
print(k,v)
print('*'*30)
else:
print('姓名不存在,请重新输入')
print('*'*30)
\ 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