Commit 9c887704 by BellCodeEditor

save project

parent 336253ad
Showing with 1 additions and 2 deletions
...@@ -10,7 +10,6 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -10,7 +10,6 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True: while True:
print("退出可输入q") print("退出可输入q")
name=input("请输入姓名") name=input("请输入姓名")
print("*"*30) print("*"*30)
if name in score: if name in score:
...@@ -18,7 +17,7 @@ while True: ...@@ -18,7 +17,7 @@ while True:
for i,o in score[name].items(): for i,o in score[name].items():
print(i,o) print(i,o)
print("*"*30) print("*"*30)
elif name==q: elif name=="q":
break break
else: else:
print("查询错误") 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