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
58d1432e
authored
Nov 14, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
ec589c0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
diy.4.py
diy.4.py
View file @
58d1432e
usename
=
"python"
password
=
"123456"
while
True
:
us
=
input
(
"请输入您的用户名:"
)
if
us
!=
usename
:
print
(
"用户名不正确,请重新输入!"
)
continue
ps
=
input
(
"请输入您的密码:"
)
if
ps
!=
password
:
print
(
"密码不正确,请重新输入!"
)
continue
if
(
us
==
usename
)
and
(
ps
==
password
):
print
(
"用户名,密码正确"
)
\ No newline at end of file
if
i
>
0
:
us
=
input
(
"请输入您的用户名:"
)
if
us
!=
usename
:
print
(
"用户名不正确,请重新输入!"
)
continue
ps
=
input
(
"请输入您的密码:"
)
if
ps
!=
password
:
print
(
"密码不正确,请重新输入!"
)
continue
if
(
us
==
usename
)
and
(
ps
==
password
):
print
(
"用户名,密码正确"
)
break
else
:
print
(
"您的账户已被锁定,请拿证件"
)
:
exit
()
\ 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