Commit 1aef39c1 by BellCodeEditor

auto save

parent 7decd60d
Showing with 18 additions and 0 deletions
student1 = {'冷兵器基础与进阶': 91, '小型火药兵器拼装': 88, '军舰基本原理': 85}
student2 = {'冷兵器基础与进阶': 97, '小型火药兵器拼装': 98, '军舰基本原理': 90}
student3 = {'冷兵器基础与进阶': 95, '小型火药兵器拼装': 100, '军舰基本原理': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
name=input("名字")
if name in score:
print('*'*123)
for a,b in score[name].items():
print(name,a,b)
print('*'*123)
else:
print("这人没了")
# 查询并打印出输入的名字对应的所有科目的成绩
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