Commit 51154a78 by BellCodeEditor

save project

parent 5a43c51a
Showing with 7 additions and 3 deletions
n = "python"
u = "123456"
while True:
i = 3
while i > 0:
n1 = input("请输入账号:")
u1 = input("请输入密码:")
if n1 == n and u1 == u:
print("登录成功!")
break
elif n1 == n and u1 != u:
pass
......@@ -12,4 +12,8 @@ while True:
print("账号错误!")
elif n1 != n and u1 != u:
print("账号错误!")
i = i-1
if i==0:
print("您的账号已被封锁!")
if i > 0:
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