Commit ca0b469e by BellCodeEditor

save project

parent 366e57fb
Showing with 7 additions and 5 deletions
N="a" N="a"
P = "q" P = "q"
t=0 t=3
if t<=3: if t>=0:
while True: while True:
n=input("请输入用户名:") n=input("请输入用户名:")
if n!=N: if n!=N:
print("用户不存在") print("用户不存在")
t=t+1 t=t-1
print("你还有"+str(t)+"次机会")
if n==N: if n==N:
while True: while True:
p=input("请输入密码:") p=input("请输入密码:")
if p!=P: if p!=P:
print("密码错误") print("密码错误")
t=t+1 t=t-1
print("你还有"+str(t)+"次机会")
if n==N and p==P: if n==N and p==P:
print("登录成功!") print("登录成功!")
print("欢迎来到贝尔编程!") print("欢迎来到贝尔编程!")
break break
break break
if t==3: if t==0:
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