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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
bug.py
bug.py
View file @
5865b462
username
=
"asdfghjkl"
username
=
"asdfghjkl"
userpassword
=
"20120501"
userpassword
=
"20120501"
while
True
:
while
True
:
if
i
>
0
:
name
=
input
(
"请告诉我你的账号名: "
)
name
=
input
(
"请告诉我你的账号名: "
)
password
=
input
(
"那你的密码是多少: "
)
password
=
input
(
"那你的密码是多少: "
)
i
-=
1
if
name
==
username
and
password
==
userpassword
:
if
name
==
username
and
password
==
userpassword
:
print
(
"登陆成功,我等你好久了!"
)
print
(
"登陆成功,我等你好久了!"
)
break
break
el
if
name
!=
username
:
if
name
!=
username
:
print
(
"用户名错误,你个**"
)
print
(
"用户名错误,你个**"
)
continue
continue
else
:
if
password
!=
userpassword
:
print
(
"密码错误,你个**"
)
print
(
"密码错误,你个**"
)
continue
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