Commit 0d069bd1 by BellCodeEditor

save project

parent 08710b78
Showing with 2 additions and 3 deletions
...@@ -8,11 +8,10 @@ while True: ...@@ -8,11 +8,10 @@ while True:
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
break break
if name != username: elif if name != username:
print("用户名错误请重新输入") print("用户名错误请重新输入")
print("错了"+str(1)"次机会") print("错了"+str(1)"次机会")
continue elif if password != userpassword
if password != userpassword
print("密码错误请重新输入") print("密码错误请重新输入")
print("错了"+str(1)"次机会") print("错了"+str(1)"次机会")
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