Commit 69f8fdea by BellCodeEditor

save project

parent 1dd84fd8
Showing with 3 additions and 0 deletions
...@@ -12,12 +12,15 @@ while True: ...@@ -12,12 +12,15 @@ while True:
else: else:
if name!=username and password != userpassword: if name!=username and password != userpassword:
print("登录失败") print("登录失败")
print("温馨提示:您还有"+str(i)+"次登陆机会")
continue continue
if name!=username: if name!=username:
print("账号错误") print("账号错误")
print("温馨提示:您还有"+str(i)+"次登陆机会")
continue continue
if userpassword!=password: if userpassword!=password:
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