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
ca6cf4b4
authored
Nov 07, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b810c294
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
oo.py
oo.py
0 → 100644
View file @
ca6cf4b4
a
=
"123"
b
=
"qqq"
i
=
3
while
True
:
if
i
>
0
:
b1
=
input
(
"用户名:"
)
if
(
b
!=
b1
):
print
(
"用户名错误"
)
i
=
i
-
1
continue
a1
=
input
(
"密码:"
)
if
(
a
!=
a1
):
print
(
"密码错误"
)
i
=
i
-
1
if
(
a
==
a1
)
and
(
b
==
b1
):
print
(
"登陆成功"
)
else
:
print
(
"不能再尝试"
)
exit
()
print
(
"欢迎来到编程"
)
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