Commit 4327c16d by BellCodeEditor

save project

parent 3d894c23
Showing with 6 additions and 1 deletions
...@@ -7,4 +7,8 @@ p=score[name] ...@@ -7,4 +7,8 @@ p=score[name]
for c,b in p .items(): for c,b in p .items():
print(c,b) print(c,b)
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
name=input("名字")
if name in score:
info=score[name]
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