Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_6
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
09e54078
authored
May 22, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
fce1a7d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
diy2.py
diy2.py
View file @
09e54078
username
=
"654321"
userpassword
=
"123456"
a
=
0
a
=
3
while
True
:
name
=
input
(
"请输入用户名:"
)
password
=
input
(
"请输入密码:"
)
...
...
@@ -9,12 +9,13 @@ while True:
break
if
name
!=
username
:
print
(
"你帐号不会吗?"
)
a
=
a
+
1
print
(
"
HAI"
a
=
a
-
1
print
(
"
还有"
+
str
(
a
)
+
"次机会,SB"
)
continue
if
password
!=
userpassword
:
print
(
"你密码不会吗?"
)
a
=
a
+
1
print
(
"还有"
+
str
(
a
)
+
"次机会,SB"
)
a
=
a
-
1
if
a
>=
3
:
break
print
(
"偷号者,别试了!"
)
\ 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