Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_5
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
e950c686
authored
Jun 05, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
ee68575e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
diy2.py
diy2.py
View file @
e950c686
username
=
"无账号"
userpassword
=
"没密码"
i
=
3
while
True
:
name
=
input
(
"请输入用户名:"
)
password
=
input
(
"请输入密码:"
)
...
...
@@ -10,7 +11,12 @@ while True:
if
name
!=
username
:
print
(
"大锅,你的账号输错了!给老子重输!"
)
i
-=
i
continue
if
password
!=
userpassword
:
print
(
"鸡汤锅,你的密码输错了,你要是不想喝鸡汤,就赶紧给老子重输!"
)
continue
\ No newline at end of file
i
-=
i
continue
if
i
==
0
:
print
(
"对不起,此服务器仅仅只有3次机会进入,且已发现您在暴力破解,现已封号!不要让我再看见你!"
)
exit
()
\ 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