Commit 104638f7 by BellCodeEditor

save project

parent 23fe82c3
Showing with 3 additions and 0 deletions
...@@ -12,11 +12,14 @@ while True: ...@@ -12,11 +12,14 @@ while True:
break break
elif name != username and password != userpassword: elif name != username and password != userpassword:
print("用户名和密码错误!请重新输入") print("用户名和密码错误!请重新输入")
print('您还有'+str(i)+'次机会')
elif name != username: elif name != username:
print("用户名错误!请重新输入") print("用户名错误!请重新输入")
print('您还有'+str(i)+'次机会')
continue continue
elif password != userpassword: elif 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