Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson1_4
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
af885f4b
authored
Jul 24, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7fa1443b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
star.py
star.py
View file @
af885f4b
usename
=
"fhhhb"
usename
=
"fhhhb"
usemima
=
"we are dsb"
usemima
=
"we are dsb"
cishu
=
3
while
True
:
while
True
:
if
cishu
==
0
:
print
(
"错误次数太多,您的帐号已冻结"
)
exit
()
name
=
input
(
"请输入账户名:"
)
name
=
input
(
"请输入账户名:"
)
mima
=
input
(
"请输入密码:"
)
mima
=
input
(
"请输入密码:"
)
if
usename
==
name
and
usemima
==
mima
:
if
usename
==
name
and
usemima
==
mima
:
print
(
"登陆成功"
)
print
(
"登陆成功"
)
print
(
"-"
*
30
)
print
(
"-"
*
30
)
break
break
if
usename
!=
name
:
if
usename
!=
name
and
usemima
==
mima
:
print
(
"账户名错误❌"
)
print
(
"账户名错误❌"
)
print
(
"登陆失败"
)
print
(
"登陆失败"
)
print
(
"-"
*
30
)
print
(
"-"
*
30
)
continue
cishu
=
cishu
-
1
if
usemima
!=
mima
:
if
usemima
!=
mima
and
usename
==
name
:
print
(
"密码错误❌"
)
print
(
"密码错误❌"
)
print
(
"登陆失败"
)
print
(
"登陆失败"
)
print
(
"-"
*
30
)
print
(
"-"
*
30
)
cishu
=
cishu
-
1
else
:
print
(
"账户和密码错误❌"
)
print
(
"登陆失败"
)
print
(
"-"
*
30
)
cishu
=
cishu
-
1
print
(
"欢迎来到对抗路"
)
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