Commit ca6cf4b4 by BellCodeEditor

save project

parent b810c294
Showing with 21 additions and 0 deletions
a="123"
b="qqq"
i=3
while True:
if i>0:
b1=input("用户名:")
if(b!=b1):
print("用户名错误")
i=i-1
continue
a1=input("密码:")
if(a!=a1):
print("密码错误")
i=i-1
if(a==a1) and (b==b1):
print("登陆成功")
else:
print("不能再尝试")
exit()
print("欢迎来到编程")
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