Commit f68a778f by BellCodeEditor

save project

parent c2670b32
Showing with 3 additions and 1 deletions
...@@ -11,11 +11,12 @@ while True: ...@@ -11,11 +11,12 @@ while True:
elif name != username: elif name != username:
print("用户名输入错误,请重新输入") print("用户名输入错误,请重新输入")
i-=1 i-=1
print("温馨提示:还剩下"+str(i)+"次登入机会")
continue continue
elif password!=userpassword: elif password!=userpassword:
print("密码输入错误,请重新输入") print("密码输入错误,请重新输入")
i-=1 i-=1
else: else:
print("多次输入错误,账户已被锁定") print("密码多次输入错误,登入已经锁定")
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