Commit 276eb4f8 by BellCodeEditor

save project

parent 654cd4d6
Showing with 17 additions and 10 deletions
username = "hhh"
userpassword = "888"
c = 3
while True:
a = input("请输入用户名:")
b = input("请输入密码:")
if a == username and b == userpassword:
print("登录成功!")
break
if username != a:
print("用户名错误!请重新输入")
continue
if userpassword != b:
print("密码错误!请重新输入")
if c > 0:
a = input("请输入用户名:")
b = input("请输入密码:")
c -=1
if a == username and b == userpassword:
print("登录成功!")
break
if username != a:
print("用户名错误!请重新输入")
continue
if userpassword != b:
print("密码错误!请重新输入")
else:
print("您的账号已锁定,哈哈嗨")
exit()
print("欢迎")
\ No newline at end of file
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