Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_2
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
204fadfb
authored
May 04, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4506c3c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
diy2.py
diy2.py
View file @
204fadfb
...
@@ -10,9 +10,11 @@ while True:
...
@@ -10,9 +10,11 @@ while True:
print
(
"登录成功!"
)
print
(
"登录成功!"
)
break
break
elif
name
!=
username
:
elif
name
!=
username
:
print
(
"账号错误"
)
print
(
"账号错误"
)
print
(
"温馨提示,你还有"
+
str
(
i
)
+
(
"次机会"
))
elif
password
!=
userpassword
:
elif
password
!=
userpassword
:
print
(
"密码错误"
)
print
(
"密码错误"
)
print
(
"温馨提示,你还有"
+
str
(
i
)
+
(
"次机会"
))
else
:
else
:
print
(
"三次机会已用完"
)
print
(
"三次机会已用完"
)
exit
()
exit
()
...
...
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