Commit 9f31c8f0 by BellCodeEditor

save project

parent 382faa96
Showing with 23 additions and 0 deletions
uesrname = "python"
uesrpassword = "098765"
i = 3
while True:
if i > 0:
name = input("请输入您的用户名")
password = input("请输入您的密码")
i -= 1
if name == uesrname and password == uesrpassword:
print("登录成功!")
break
elif name != uesrname:
print("用户名错误")
else:
print("错误")
else:
print("帐号已锁定!")
exit()
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