Commit 276eb4f8 by BellCodeEditor

save project

parent 654cd4d6
Showing with 7 additions and 0 deletions
username = "hhh" username = "hhh"
userpassword = "888" userpassword = "888"
c = 3
while True: while True:
if c > 0:
a = input("请输入用户名:") a = input("请输入用户名:")
b = input("请输入密码:") b = input("请输入密码:")
c -=1
if a == username and b == userpassword: if a == username and b == userpassword:
print("登录成功!") print("登录成功!")
break break
...@@ -11,4 +14,7 @@ while True: ...@@ -11,4 +14,7 @@ while True:
continue continue
if userpassword != b: if userpassword != b:
print("密码错误!请重新输入") 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