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
53ec5ef9
authored
Jun 19, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
14789bdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
diy2.py
diy2.py
View file @
53ec5ef9
username
=
"大帅哥"
username
=
"大帅哥"
userpassword
=
"牛逼"
userpassword
=
"牛逼"
i
=
2
while
True
:
while
True
:
name
=
input
(
"请输入用户名:"
)
if
i
>
0
:
password
=
input
(
"请输入密码:"
)
name
=
input
(
"请输入用户名:"
)
if
name
==
username
and
password
==
userpassword
:
password
=
input
(
"请输入密码:"
)
print
(
"扣你几哇!"
)
if
name
==
username
and
password
==
userpassword
:
break
print
(
"扣你几哇!"
)
if
name
!=
username
:
break
print
(
"用户名死了!请去天堂找ta!"
)
elif
name
!=
username
:
continue
print
(
"用户名死了!请去天堂找ta!"
)
if
password
!=
userpassword
:
else
:
print
(
"密码成仙了!请去修仙!"
)
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