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
0c70a645
authored
Mar 05, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
aba03cea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
wd.py
wd.py
View file @
0c70a645
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
a
=
"python"
a
=
"python"
b
=
"123456"
b
=
"123456"
e
=
0
e
=
0
i
=
3
while
e
<
3
:
while
e
<
3
:
c
=
input
(
"请输入用户名: "
)
c
=
input
(
"请输入用户名: "
)
d
=
input
(
"请输入密码: "
)
d
=
input
(
"请输入密码: "
)
...
@@ -33,12 +34,18 @@ while e < 3:
...
@@ -33,12 +34,18 @@ while e < 3:
elif
a
!=
c
and
b
==
d
:
elif
a
!=
c
and
b
==
d
:
print
(
"用户名错误"
)
print
(
"用户名错误"
)
e
+=
1
e
+=
1
i
-=
1
print
(
"还可登录{i}次"
)
elif
a
==
c
and
b
!=
d
:
elif
a
==
c
and
b
!=
d
:
print
(
"密码错误"
)
print
(
"密码错误"
)
e
+=
1
e
+=
1
i
-=
1
print
(
"还可登录{i}次"
)
else
:
else
:
print
(
"该账号不存在"
)
print
(
"该账号不存在"
)
e
+=
1
e
+=
1
i
-=
1
print
(
"还可登录{i}次"
)
print
(
"账号封锁中"
)
print
(
"账号封锁中"
)
print
(
"账号已封锁"
)
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