Commit 3137651a by BellCodeEditor

save project

parent b7498cbe
Showing with 12 additions and 0 deletions
student1 = {'语文': 0, '数学': 0, '英语': 0}
student2 = {'语文': 0, '数学': 0, '英语': 0}
student3 = {'语文': 100, '数学': 100, '英语': 100}
score = {'徐朗': student1, '徐培荣': student2, '高佳祎': student3}
name = input("请输入要查询的成绩:")
if name in score:
for k,v in score[name].items():
print(k,v)
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