Commit b2c826b4 by BellCodeEditor

save project

parent f2d8a71f
Showing with 11 additions and 2 deletions
...@@ -9,8 +9,17 @@ while True: ...@@ -9,8 +9,17 @@ while True:
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功") print("登录成功")
break break
ifi if name != username:
print("用户名错误,请重新输入")
print("温馨提示:你还有" + str(i)+"次登陆机会")
continue
if name != username:
print("用户名错误,请重新输入")
print("温馨提示:你还有" + str(i)+"次登陆机会")
else:
print("你的账号已被锁定,请一个小时以后再来")
exit()
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