Commit f5f752e8 by BellCodeEditor

save project

parent 089e104c
Showing with 18 additions and 11 deletions
user='python' user='python'
password='12345' password='12345'
i=3
while True: while True:
a=input("输入用户名:") if i>0:
b=input("输入密码:") a=input("输入用户名:")
if user==a and password==b: b=input("输入密码:")
print("登录成功!") i=i-1
break if user==a and password==b:
if user!=a: print("登录成功!")
print("用户名错误!") break
continue if user!=a:
if password!=b: print("用户名错误!")
print("密码错误!") continue
continue if password!=b:
print("密码错误!")
continue
else:
print("系统锁定!")
exit()
\ No newline at end of file
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