Commit 5d61fd42 by BellCodeEditor

save project

parent 86c0af07
Showing with 5 additions and 2 deletions
...@@ -7,8 +7,11 @@ while True: ...@@ -7,8 +7,11 @@ while True:
if name == username and password == userpassword: if name == username and password == userpassword:
print("登陆成功!") print("登陆成功!")
break break
if name != username and password != userpassword: if name != username:
print("登陆错误,请重新输入") print("名字错误,请重新输入")
continue
if password != userpassword:
print("密码错误,请重新输入")
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