Commit 8e665594 by BellCodeEditor

save project

parent 6953f69e
Showing with 6 additions and 1 deletions
...@@ -10,10 +10,14 @@ while True: ...@@ -10,10 +10,14 @@ while True:
print("登录成功!") print("登录成功!")
break# 如果用户输入的账号、密码正确,提示登陆成功 break# 如果用户输入的账号、密码正确,提示登陆成功
elif a != username: elif a != username:
i-=1
print("账号错误,请重新输入:") print("账号错误,请重新输入:")
print("温馨提示:你还剩下"+ str(i) +" 次机会")
else: else:
print("密码错误,请重新输入:") print("密码错误,请重新输入:")
else: else:
print("你的账户已被锁定,请一小时候在来") i-=1
print("你的账户已被锁定,请一小时候再来")
print("温馨提示:你还剩下"+ str(i) +"次机会")
exit() exit()
print("欢迎来到贝尔编程!") print("欢迎来到贝尔编程!")
\ No newline at end of file
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