Commit 67e5093c by BellCodeEditor

save project

parent 1ec6bb35
Showing with 2 additions and 0 deletions
...@@ -10,11 +10,13 @@ while True: ...@@ -10,11 +10,13 @@ while True:
if a==username and b==userpassword: if a==username and b==userpassword:
print("登录成功") print("登录成功")
break break
print("温馨提示:您还有"+str(i)+"次机会")
if a!=username: if a!=username:
print("用户名不正确,请重新输入!") print("用户名不正确,请重新输入!")
continue continue
if b!=userpassword: if b!=userpassword:
print("密码输入有误,请重新输入!") print("密码输入有误,请重新输入!")
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