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
9592f9dd
authored
Mar 26, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
e15dac34
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
diy1.py
diy1.py
View file @
9592f9dd
A
=
"1234567890"
B
=
"0987654321"
E
=
3
while
True
:
if
E
>
0
:
C
=
input
(
"用户名:"
)
D
=
input
(
"密码:"
)
E
-=
1
if
C
==
A
and
B
==
D
:
print
(
"登陆成功"
)
break
else
:
if
C
!=
A
:
print
(
"登陆
失败"
)
print
(
"用户名
失败"
)
elif
D
!=
B
:
print
(
"密码失败"
)
else
:
print
(
"密码或登陆失败
"
)
print
(
"次数已经用完,请联系好吊小朋友
"
)
break
\ 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