Commit ddcae3de by BellCodeEditor

auto save

parent 7ae033b3
Showing with 8 additions and 8 deletions
...@@ -8,15 +8,15 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -8,15 +8,15 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
while True: while True:
a=input("姓名") a=input("姓名")
print("*"*30)
if i in score
b=score[a]
for k,v in b.items():
print(k,v)
print("*"*30) print("*"*30)
else: if a in score:
print("你写错了") b=score[a]
for k,v in b.items():
print(k,v)
print("*"*30)
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