Commit 432eae49 by BellCodeEditor

save project

parent 66793dc8
Showing with 17 additions and 10 deletions
i=3
a="123"
b="1234"
while True:
c=input("请输入")
d=input("请输入")
if a == c and b == d:
print("成功")
break
if a!=c:
print("账号错误")
continue
if b!=d:
print("密码错误")
if i>0:
c=input("请输入")
d=input("请输入")
i=i-1
if a == c and b == d:
print("成功")
break
if a!=c:
print("账号错误")
continue
if b!=d:
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