Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_6
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
11923dba
authored
Apr 16, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b810c294
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
diy2.py
diy2.py
0 → 100644
View file @
11923dba
username
=
"爸爸"
userpassword
=
"我是你爹"
i
=
5
a
=
0
while
True
:
if
i
>
0
:
name
=
input
(
"请输入用户名:"
)
password
=
input
(
"请输入密码:"
)
if
name
==
username
and
password
==
userpassword
:
print
(
"登录成功!"
)
break
if
name
!=
username
:
print
(
'你个狗,自己名字都不知道,还来干什么?!您再输错'
+
str
(
i
-
1
)
+
'次就将锁定账户'
)
i
-=
1
continue
if
password
!=
userpassword
:
i
-=
1
print
(
'密码都不知道?绝对是盗号的,滚!您再输错'
+
str
(
i
)
+
'次就将锁定账户'
)
else
:
print
(
'狗狗,您的账户已被冻结,请您根据以下操作激活账户'
)
shabi
=
input
(
'第一步,请输入【我是狗】:'
)
if
shabi
!=
'我是狗'
:
print
(
'你没机会了,滚'
)
exit
()
else
:
a
=
input
(
'您成功获取了增加尝试次数的机会,您要增加几次?小于10都可以:'
)
i
=
int
(
a
)
if
i
>=
10
:
print
(
'你不诚信,再见,你没机会了'
)
exit
()
print
(
username
+
"欢迎来到爸爸联盟!"
)
\ 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