Commit bdfb0ac3 by BellCodeEditor

save project

parent 0b0ea4da
Showing with 19 additions and 13 deletions
i=3
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
while True: while True:
x=input("请输入账号:") if i>0:
y=input("请输入密码:") x=input("请输入账号:")
if x==username and y==userpassword: y=input("请输入密码:")
print("密码正确") i-=1
break if x==username and y==userpassword:
if x != username: print("密码正确")
input("用户名不存在") break
continue if x != username:
if y != userpassword: input("用户名不存在")
input("密码错误") continue
if y != userpassword:
input("密码错误")
\ No newline at end of file else:
print("你的账户已被锁定,请等待解锁账号")
exit()
\ 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