Commit 29f963b6 by BellCodeEditor

save project

parent f38b5c8c
Showing with 16 additions and 0 deletions
student1 = {'语文':91,'数学':86,'英语':85}
student2 = {'语文':90,'数学':58,'英语':95}
student3 = {'语文':71,'数学':78,'英语':75}
score = {'lll':student1,'sss':student2,'ppp':student3}
name =input("名字:")
if name in score:
info =score[name]
print('*'*30)
for k,v in score .items():
print(k,v)
print('*'*30)
else:
print('*'*30)
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