Commit 27615020 by BellCodeEditor

save project

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