Commit f4faee69 by BellCodeEditor

save project

parent 4327c16d
Showing with 9 additions and 6 deletions
print(355/113)
\ No newline at end of file
...@@ -7,8 +7,9 @@ p=score[name] ...@@ -7,8 +7,9 @@ p=score[name]
for c,b in p .items(): for c,b in p .items():
print(c,b) print(c,b)
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
name=input("名字") while True:
if name in score: name=input("名字")
info=score[name] if name in score:
else: info=score[name]
print("趴") else:
\ No newline at end of file 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