Commit ec2aba30 by BellCodeEditor

save project

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