Commit 9592f9dd by BellCodeEditor

save project

parent e15dac34
Showing with 16 additions and 12 deletions
A="1234567890"
B="0987654321"
E=3
while True:
C=input("用户名:")
D=input("密码:")
if C==A and B==D:
print("登陆成功")
break
else:
if C!=A:
print("登陆失败")
elif D!=B:
print("密码失败")
if E >0:
C=input("用户名:")
D=input("密码:")
E-=1
if C==A and B==D:
print("登陆成功")
break
else:
print("密码或登陆失败")
if C!=A:
print("用户名失败")
elif D!=B:
print("密码失败")
else:
print("次数已经用完,请联系好吊小朋友")
break
\ 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