Commit 276eb4f8 by BellCodeEditor

save project

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