Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-1-2_DIY1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2d98542c
authored
Dec 12, 2020
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
f5573bd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
账号登录.py
账号登录.py
View file @
2d98542c
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
(
'欢迎来到编程世界'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment