Commit dbed4070 by BellCodeEditor

save project

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