Commit 2d98542c by BellCodeEditor

save project

parent f5573bd7
Showing with 9 additions and 3 deletions
usenamename=input('你的名字是——') i=3
i=3
usenamename=input('你的名字是——') usenamename=input('你的名字是——')
password='666666' password='666666'
while True: while True:
if i>0:
name=input('请输入你的账号') name=input('请输入你的账号')
word=input('请输入你的密码') word=input('请输入你的密码')
i-=1
if name==usenamename and word==password: if name==usenamename and word==password:
print('登录成功') print('登录成功')
break break
...@@ -11,4 +14,8 @@ while True: ...@@ -11,4 +14,8 @@ while True:
continue continue
else: else:
print('密码错误') print('密码错误')
continue
\ No newline at end of file else:
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