Commit ec2aba30 by BellCodeEditor

save project

parent 372f4b2c
Showing with 15 additions and 10 deletions
i=3
username = "qtz" username = "qtz"
userpassword = "1027" userpassword = "1027"
while True: while True:
name = input("请输入用户名:") if i>0:
password = input("请输入密码:") name = input("请输入用户名:")
if name == username and password == userpassword: password = input("请输入密码:")
print("登陆成功") if name == username and password == userpassword:
break i=i-1
if name!=username: print("登陆成功")
print("X") break
continue if name!=username:
if password !=userpassword: print("X")
print("*") continue
if password !=userpassword:
print("*")
else:
print("错的")
print("jhjn") print("jhjn")
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