Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-1_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
7b6cc17b
authored
Oct 05, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5d6e0e19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
bangxuan.py
bangxuan.py
View file @
7b6cc17b
i
=
3
zh
=
"bangxuan"
zh
=
"bangxuan"
mm
=
"123456"
mm
=
"123456"
while
True
:
while
True
:
zh1
=
input
(
"请输入账号"
)
if
i
>
0
:
mm1
=
input
(
"请输入密码"
)
zh1
=
input
(
"请输入账号"
)
if
zh
==
zh1
and
mm
==
mm1
:
mm1
=
input
(
"请输入密码"
)
print
(
"登录成功!"
)
i
-=
1
break
if
zh
==
zh1
and
mm
==
mm1
:
print
(
"账号密码输入错误!"
)
print
(
"登录成功!"
)
break
if
zh
!=
zh1
:
print
(
"账号输入错误!"
)
print
(
"温馨提示:你还有"
+
str
(
i
)
+
"次机会"
)
continue
if
mm
!=
mm1
:
print
(
"密码输入错误!"
)
else
:
print
(
"你的账号已锁定~~~~~~~~"
)
exit
()
print
(
"欢迎来到贝尔编程!"
)
print
(
"欢迎来到贝尔编程!"
)
\ No newline at end of file
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