Commit 1441f209 by BellCodeEditor

save project

parent c4d164a7
Showing with 1 additions and 2 deletions
...@@ -6,10 +6,9 @@ while True: ...@@ -6,10 +6,9 @@ while True:
if username == name and userpassword == password: if username == name and userpassword == password:
print("登录成功") print("登录成功")
break break
elif username != name and userpassword != password:
print ("密码与账号错误,请重新输入")
elif username != name: elif username != name:
print("用户名不存在,请重新输入") print("用户名不存在,请重新输入")
continue
elif userpassword != password: elif userpassword != password:
print("密码错误,请重新输入") print("密码错误,请重新输入")
else: else:
......
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