Commit 1f781481 by BellCodeEditor

save project

parent 62692a77
Showing with 17 additions and 0 deletions
student1 = {'语文':83.5,'数学':91.5,'英语':82,'科学':89}
student2 = {'语文':95.5,'数学':98,'英语':62.5,'科学':78}
student3 = {'语文':84,'数学':99.5,'英语':76,'科学':75.4}
score = {'白隽':student1,'举元煎':student2,'康健纳':student3}
while True:
print('退出请按“q”')
name = input('请输入你要查询人:')
if name in score:
a = score[name]
print('*'*30)
for k,v in score.items():
print(k,v)
elif name == 'q':
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