Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-5-2_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
5865b462
authored
Apr 09, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b79f8be5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
bug.py
bug.py
View file @
5865b462
username
=
"asdfghjkl"
username
=
"asdfghjkl"
userpassword
=
"20120501"
userpassword
=
"20120501"
while
True
:
while
True
:
name
=
input
(
"请告诉我你的账号名: "
)
if
i
>
0
:
password
=
input
(
"那你的密码是多少: "
)
name
=
input
(
"请告诉我你的账号名: "
)
if
name
==
username
and
password
==
userpassword
:
password
=
input
(
"那你的密码是多少: "
)
print
(
"登陆成功,我等你好久了!"
)
i
-=
1
break
if
name
==
username
and
password
==
userpassword
:
elif
name
!=
username
:
print
(
"登陆成功,我等你好久了!"
)
print
(
"用户名错误,你个**"
)
break
continue
if
name
!=
username
:
print
(
"用户名错误,你个**"
)
continue
if
password
!=
userpassword
:
print
(
"密码错误,你个**"
)
else
:
else
:
print
(
"
密码错误,你个**"
)
print
(
"
你的密码已经锁死,请到公司解锁"
)
continue
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