Commit cbb2cb44 by BellCodeEditor

save project

parent e16108dd
Showing with 19 additions and 8 deletions
......@@ -2,15 +2,26 @@ username = "python"
userpassword = "123456"
i=3
while True:
if not i<==0:
name=input("请输入用户名")
password=input("请输入密码")
if not i==0:
name=input("请输入用户名")
password=input("请输入密码")
i-=1
if name==username and password==userpassword:
print("输入正确")
break
if name!=username
print("用户名错误")
continue
print("输入正确")
break
if name!=username:
print("用户名错误")
continue
if password!=userpassword:
print("密码错误")
continue
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