Commit cbb2cb44 by BellCodeEditor

save project

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