Commit a10f972e by BellCodeEditor

save project

parent 0aadf11b
Showing with 5 additions and 0 deletions
...@@ -8,12 +8,17 @@ while True: ...@@ -8,12 +8,17 @@ while True:
c-=1 c-=1
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
c-=1
break break
if username!=name: if username!=name:
print("用户名错误!请重新输入") print("用户名错误!请重新输入")
c-=1
print("还剩"+se+"次机会")
continue continue
if userpassword!=password: if userpassword!=password:
print("密码错误!请重新输入!") print("密码错误!请重新输入!")
c-=1
print("还剩"+se+"次机会")
else: else:
print("已经被锁定!") print("已经被锁定!")
exit() exit()
......
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