Commit 5c17bcdd by BellCodeEditor

save project

parent 19855cf7
Showing with 4 additions and 3 deletions
...@@ -7,7 +7,7 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -7,7 +7,7 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
input("请输入:啊哈哈") a=input("请输入:啊哈哈")
score[a] b = score[a]
for k,v in score.items(): for k,v in b.items():
print(k,v) print(k,v)
\ 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