Commit 54764f5c by BellCodeEditor

save project

parent 5ce03757
Showing with 2 additions and 0 deletions
...@@ -8,6 +8,7 @@ while True: ...@@ -8,6 +8,7 @@ while True:
if name != username: if name != username:
print("名称错误,重新输入") print("名称错误,重新输入")
print("温馨提示:您还有"+str(i)+"次登陆机会")
continue continue
password = input("请输入密码:") password = input("请输入密码:")
if name == username and password == userpassword: if name == username and password == userpassword:
...@@ -15,6 +16,7 @@ while True: ...@@ -15,6 +16,7 @@ while True:
break break
if password != userpassword: if password != userpassword:
print("密码错误,重新输入") print("密码错误,重新输入")
print("温馨提示:您还有"+str(i)+"次登陆机会")
else: else:
print("账户锁定") print("账户锁定")
exit() exit()
......
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