Commit 157335a3 by BellCodeEditor

save project

parent 72259a43
Showing with 12 additions and 22 deletions
username="python"
userpassword="123456"
i=6
while True: while True:
if i>0: name=input("请输入用户账号:")
name=input("请输入用户账号:") password=input("请输入用户密码:")
password=input("请输入用户密码:") # 如果用户输入的账号、密码正确,提示登陆成功
i=i-1 if name==username and password==userpassword:
if name==username and password==userpassword: print("登录成功")
print("登录成功") break
break if name!=username:
if name!=username: print("用户名不存在,请重新输入!")
print("用户名不存在,请重新输入!") continue
print("温馨提示:你还有"+ste(i)+"次机会!") if password!=userpassword:
continue print("密码输入错误,请重新输入!")
if password!=userpassword: print("欢迎来到贝尔编程")
print("密码输入错误,请重新输入!")
print("温馨提示:你还有"+ste(i)+"次机会!")
else:
print("账号已被锁定,请带身份证到我司解锁")
exit()
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