Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-5-1_DIY1
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
0105a3c8
authored
Jun 24, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
150e856a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
KKK.py
KKK.py
View file @
0105a3c8
i
=
3
usename
==
kk
usename
==
kk
userpassword
==
1234567890
userpassword
==
1234567890
while
True
:
while
True
:
if
i
>
0
name
=
input
(
"请输入用户名"
)
name
=
input
(
"请输入用户名"
)
passwond
=
input
(
"请输入密码"
)
passwond
=
input
(
"请输入密码"
)
if
name
==
usename
and
passwond
==
userpassword
:
:
if
name
==
usename
and
passwond
==
userpassword
:
:
print
(
"登录成功"
)
print
(
"登录成功"
)
break
if
name
!=
usename
:
if
name
!=
usename
:
print
(
"用户名错误"
)
print
(
"用户名错误
,重新输入
"
)
continue
continue
if
passwond
!=
userpassword
:
if
passwond
!=
userpassword
:
print
(
"密码错误"
)
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