Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-5_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
eb66a6a3
authored
4 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
499b39ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
登录.py
登录.py
View file @
eb66a6a3
name
=
"没时间"
name
=
"阔绰"
name
=
"没时间"
name
=
"阔绰"
password
=
"meishijian"
password
=
"阔绰"
while
True
:
while
True
:
if
input
(
"请输入账号:"
)
==
name
:
if
input
(
"请输入账号:"
)
==
name
:
if
input
(
"请输入密码:"
)
==
password
:
if
input
(
"请输入密码:"
)
==
password
:
...
@@ -9,3 +9,16 @@ while True:
...
@@ -9,3 +9,16 @@ while True:
print
(
"密码错误!"
)
print
(
"密码错误!"
)
else
:
else
:
print
(
"账号错误!"
)
print
(
"账号错误!"
)
i
=
5
elif
username
!=
myusernme
:
print
(
"账号错误"
)
continue
eilf
password
!=
mypassword
:
i
=
i
-
1
print
(
"密码错误! 输入错误第"
+
str
(
times
)
+
"次, 剩余"
+
str
(
5
-
times
)
+
"次"
)
continue
else
:
print
(
"你已输入错误五次,账号已锁定"
)
exit
()
print
(
"欢迎您"
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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