Commit 6dc5df04 by BellCodeEditor

save project

parent 0098c983
Showing with 21 additions and 0 deletions
user='python'
password='12345'
i=3
while True:
if i>0:
a=input("输入用户名:")
b=input("输入密码:")
i=i-1
if user==a and password==b:
print("登录成功!")
break
if user!=a:
print("用户名错误!您还有"+str(i)+"机会!")
continue
if password!=b:
print("密码错误!您还有"+str(i)+"机会!")
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