Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_1
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
175766ef
authored
Mar 21, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
04ca4baa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
diy1.py
diy1.py
View file @
175766ef
...
@@ -5,13 +5,15 @@ userpassword = "3141592653589732384"
...
@@ -5,13 +5,15 @@ userpassword = "3141592653589732384"
while
True
:
while
True
:
S
=
input
(
"输入账号"
)
S
=
input
(
"输入账号"
)
B
=
input
(
"输入密码"
)
if
S
==
username
:
if
S
==
username
and
B
==
userpassword
:
B
=
input
(
"输入密码"
)
print
(
"bingou"
)
if
B
==
userpassword
:
break
print
(
"ok"
)
# else:
break
# print("che shuo")
else
:
if
S
!=
username
:
print
(
"密码戳了"
)
print
(
"账号戳了"
)
continue
if
B
!=
userpassword
:
else
:
print
(
"密码戳了"
)
print
(
"账号戳了"
)
\ No newline at end of file
continue
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