Commit 366e57fb by BellCodeEditor

save project

parent 00da1c86
Showing with 23 additions and 14 deletions
N="a"
P = "q"
while True:
n=input("请输入用户名:")
if n!=N:
print("用户不存在")
if n==N:
while True:
p=input("请输入密码:")
if p!=P:
print("密码错误")
if n==N and p==P:
print("登录成功!")
print("欢迎来到贝尔编程!")
break
break
t=0
if t<=3:
while True:
n=input("请输入用户名:")
if n!=N:
print("用户不存在")
t=t+1
if n==N:
while True:
p=input("请输入密码:")
if p!=P:
print("密码错误")
t=t+1
if n==N and p==P:
print("登录成功!")
print("欢迎来到贝尔编程!")
break
break
if t==3:
print("你账号被锁了,笨蛋")
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