Commit e75942b1 by BellCodeEditor

save project

parent de385108
Showing with 6 additions and 2 deletions
......@@ -5,10 +5,14 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True:
print("请输入名字,按f退出")
name=input("名字")
if name in score:
score=score[name]
for k,v in score.items():
print(k,v)
elif name=="f":
break
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