Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson1_1
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
14265c4a
authored
Jan 02, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
0f64ff00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
te.py
te.py
View file @
14265c4a
usename
=
"python"
usepassword
=
12345
i
=
3
while
True
:
a
=
input
(
"请输入账号:"
)
a1
=
input
(
"请输入密码:"
)
a1
=
int
(
a1
)
i
=
3
while
True
:
i
f
i
<=
0
:
i
=
i
-
1
if
a
==
usename
and
a1
==
usepassword
:
print
(
"登录成功"
)
break
else
:
i
-=
1
if
i
==
0
:
exit
()
if
a
!=
usename
:
print
(
"用户名错误"
)
continue
else
:
print
(
"密码错误"
)
\ No newline at end of file
print
(
"密码错误"
)
print
(
"温馨提示,您还有str(i)次登陆时间"
)
else
:
print
(
"登陆失败"
)
exit
()
\ 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