Commit 27615020 by BellCodeEditor

save project

parent 1f5bd9c5
Showing with 9 additions and 8 deletions
i = 0
username = "zhujunlin"
userpassword = "123456"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功")
break
if i<3:
printname = input("请输入用户名:")
password = input("请输入密码:")
i+=1
if name == username and password == userpassword:
print("登录成功")
break
elif name != username:
print("错误")
else:
print("错误")
else:("错误")
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