Commit e26adee8 by BellCodeEditor

save project

parent 55d03283
Showing with 7 additions and 3 deletions
...@@ -5,7 +5,10 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -5,7 +5,10 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
name = input("名字:") name = input("名字:")
print("****************************************") print("****************************************")
if name in score: while True:
if name in score:
c=score[name] c=score[name]
a=score.keys() a=score.keys()
...@@ -13,8 +16,9 @@ if name in score: ...@@ -13,8 +16,9 @@ if name in score:
for a,b in c.items(): for a,b in c.items():
print(a,b) print(a,b)
print("*"*50) print("*"*50)
elif name == 'q':
else: break
else:
print("查询错误") print("查询错误")
print("*"*50) print("*"*50)
......
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