Commit dbed4070 by BellCodeEditor

save project

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