Commit 2d98542c by BellCodeEditor

save project

parent f5573bd7
Showing with 18 additions and 12 deletions
usenamename=input('你的名字是——')
i=3
i=3
usenamename=input('你的名字是——')
password='666666'
while True:
name=input('请输入你的账号')
word=input('请输入你的密码')
if name==usenamename and word==password:
print('登录成功')
break
elif name!=usenamename:
print('账号错误')
continue
if i>0:
name=input('请输入你的账号')
word=input('请输入你的密码')
i-=1
if name==usenamename and word==password:
print('登录成功')
break
elif name!=usenamename:
print('账号错误')
continue
else:
print('密码错误')
continue
else:
print('密码错误')
\ No newline at end of file
print('密码多次错误,账号已被锁定,请拿身份证到我公司查验')
exit()
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