Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-1_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
f38b5472
authored
Sep 11, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
b6bfa880
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
a.py
a.py
View file @
f38b5472
i
=
3
username
=
"ltg"
username
=
"ltg"
userpassword
=
"20131203"
userpassword
=
"20131203"
while
True
:
while
True
:
if
i
>
0
:
name
=
input
(
"请输入用户名"
)
name
=
input
(
"请输入用户名"
)
password
=
input
(
'请输入密码'
)
password
=
input
(
"请输入密码"
)
if
name
==
username
and
password
==
userpassword
:
i
=
i
-
1
print
(
"登录成功"
)
if
name
==
username
and
password
==
userpassword
:
break
print
(
"登录成功"
)
elif
name
!=
username
:
break
print
(
"请重新输入用户名"
)
if
name
!=
username
:
else
:
print
(
"请重新输入用户名"
)
print
(
"请重新输入密码"
)
print
(
"你还有"
+
str
(
i
)
+
"次机会"
)
continue
if
password
!=
userpassword
print
(
"请重新输入密码"
)
else
:
print
(
"你废了"
)
print
(
"你被骗了"
)
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