Commit ad645a0f by BellCodeEditor

save project

parent c072445c
Showing with 6 additions and 2 deletions
......@@ -2,14 +2,18 @@ username = "python"
userpassword = "123456"
i=3
while True:
ifi>0:
if i>0:
name = input("请输入用户名:")
password = input("请输入密码:")
i-=1
if name == username and password == userpassword:
print("登录成功!")
if name != username:
print("用户名不正确,请重新输入")
continue
continue
if password != userpassword:
print("密码输入错误,请重新输入")
else
print("账户锁定")
exit()
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