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
b36cbad5
authored
Sep 16, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4d142ece
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
16 deletions
34.py
34.py
View file @
b36cbad5
i
=
3
username
=
"114514"
username
=
"sb"
userpassword
=
"123456"
userpassword
=
"54188"
while
True
:
while
True
:
if
i
>
0
name
=
input
(
"输入用户名:"
)
name
=
input
(
"给老子输入用户名:"
)
if
name
==
username
:
password
=
input
(
"给老子输入密码:"
)
password
=
input
(
"输入密码:"
)
i
-=
1
if
name
==
username
and
password
==
userpassword
:
print
(
"拉好了"
)
break
if
name
!=
username
:
if
name
!=
username
:
print
(
"用户名错了!"
)
print
(
"用户名错了!"
)
continue
continue
if
password
==
userpassword
:
print
(
"登录成功"
)
break
if
password
!=
userpassword
:
if
password
!=
userpassword
:
print
(
"密码错了!"
)
print
(
"密码错了!"
)
else
:
continue
print
(
"你的脑子有问题,来我家治治病"
)
print
(
"进来了"
)
exit
()
\ No newline at end of file
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