Commit 0bdf197e by BellCodeEditor

save project

parent cd34c788
Showing with 7 additions and 4 deletions
...@@ -9,12 +9,15 @@ while True: ...@@ -9,12 +9,15 @@ while True:
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
break break
elif name != username: if name != username:
print("用户名不正确") print("用户名不正确")
continue continue
else: if password != userpassword:
print("密码不正确") print("密码输入有误,请重新输入")
exit() print("温馨提示:您还有"+str(i)+"次登陆机会")
else:
print("你的账户已被锁定,请一小时后再来")
exit()
print("欢迎来到贝尔编程!") print("欢迎来到贝尔编程!")
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