Commit 3e5f7f78 by BellCodeEditor

save project

parent ad1b8c72
Showing with 8 additions and 0 deletions
i=5
unname="1" unname="1"
unmm="1" unmm="1"
while True: while True:
if i>0:
name=input("请输入用户名") name=input("请输入用户名")
mm=input("请输入密码") mm=input("请输入密码")
if name==unname and mm==unmm: if name==unname and mm==unmm:
...@@ -8,6 +10,11 @@ while True: ...@@ -8,6 +10,11 @@ while True:
break break
elif name!=unname: elif name!=unname:
print("用户名错误,请重新输入") print("用户名错误,请重新输入")
i-=1
else: else:
print("密码错误,请重新输入") print("密码错误,请重新输入")
i-=1
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