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
43909064
authored
Oct 17, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c624ea5e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
diy1.py
diy1.py
View file @
43909064
user
=
'1234'
user
=
'1234'
pwd
=
'345'
pwd
=
'345'
use
=
input
(
"请输入账号"
)
use
=
input
(
"请输入账号"
)
pw
=
input
(
"请输入密码"
)
pw
=
input
(
"请输入密码"
)
while
True
:
while
True
:
if
use
==
user
and
==
pwd
:
if
use
==
user
and
pw
==
pwd
:
print
(
"登录成功"
)
print
(
"登录成功"
)
break
break
else
:
else
:
if
use
!=
user
:
if
use
==
user
:
print
(
"sb,错误,重新来"
)
print
(
"sb,sb,sb"
)
if
use
!=
user
:
continue
print
(
"sb,错误,重新来"
)
if
pw
==
pwd
:
print
(
"sb,sb,sb"
)
\ No newline at end of file
user
=
'1234'
pwd
=
'345'
use
=
input
(
"请输入账号"
)
pw
=
input
(
"请输入密码"
)
while
True
:
if
use
==
user
and
pw
==
pwd
:
print
(
"登录成功"
)
break
else
:
if
use
==
user
:
print
(
"sb,sb,sb"
)
continue
if
pw
==
pwd
:
print
(
"sb,sb,sb"
)
\ 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