Commit 0095e882 by BellCodeEditor

save project

parent 62692a77
Showing with 25 additions and 0 deletions
student1 = {'语文': 100, '数学': 100, '英语': 100}
student2 = {'语文': 0, '数学': 0, '英语': 0}
student3 = {'语文': 52, '数学': 32, '英语': 23}
student4 = {'语文': 29, '数学': 4, '英语': 1}
score = {'项圣豪': student1, '帅帅': student2, '蒋应铭': student3'旁边的黑色衣服萨比'student4}
# 查询并打印出输入的名字对应的所有科目的成绩
while True :
name = input("名字:")
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