Commit 0c70a645 by BellCodeEditor

save project

parent aba03cea
Showing with 7 additions and 0 deletions
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
a = "python" a = "python"
b = "123456" b = "123456"
e = 0 e = 0
i = 3
while e < 3: while e < 3:
c = input("请输入用户名: ") c = input("请输入用户名: ")
d = input("请输入密码: ") d = input("请输入密码: ")
...@@ -33,12 +34,18 @@ while e < 3: ...@@ -33,12 +34,18 @@ while e < 3:
elif a != c and b == d: elif a != c and b == d:
print("用户名错误") print("用户名错误")
e += 1 e += 1
i -= 1
print("还可登录{i}次")
elif a == c and b != d: elif a == c and b != d:
print("密码错误") print("密码错误")
e += 1 e += 1
i -= 1
print("还可登录{i}次")
else: else:
print("该账号不存在") print("该账号不存在")
e += 1 e += 1
i -= 1
print("还可登录{i}次")
print("账号封锁中") print("账号封锁中")
print("账号已封锁") print("账号已封锁")
# print("请三分钟后尝试") # print("请三分钟后尝试")
......
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