Commit dbed4070 by BellCodeEditor

save project

parent 2bc7b47f
Showing with 14 additions and 11 deletions
name= 'python' name= 'python'
password= '123456' password= '123456'
i=3
while True: while True:
username = input("请输入账号:") if i>0:
userpassword = input("请输入密码:") username = input("请输入账号:")
if name==username and password==userpassword: userpassword = input("请输入密码:")
print("用户密码正确,登陆成功!") i-=1
break if name==username and password==userpassword:
if name!=username : print("用户密码正确,登陆成功!")
print("您好,您的账号已被锁定,特警马上赶到抓捕你!!") break
continue elif name!=username :
if password!=userpassword: print("您好,您的账号已被锁定,特警马上赶到抓捕你!!")
print("您好,您的密码已被举报,请自首") else :
print("您好,您的密码已被举报,请自首")
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