Commit cd422ddc by BellCodeEditor

save project

parent 202b63e9
Showing with 9 additions and 3 deletions
......@@ -2,9 +2,15 @@ student1 = {'语文': 9, '数学': 8, '英语': 8}
student2 = {'语文': 9, '数学': 9, '英语': 9}
student3 = {'语文': 9, '数学': 1, '英语': 9}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
k = input("你要查询谁的成绩?")
info = score[k]
for k,v in info.items():
while True:
k = input("你要查询谁的成绩?")
if k in score:
print('*'*15)
info = score[k]
for k,v in info.items():
print(k,v)
print('*'*15)
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