Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-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
53050878
authored
May 30, 2026
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
8bb371bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
1234567890.py
1234567890.py
0 → 100644
View file @
53050878
f_z
=
"adh"
f_m
=
"12345"
i
=
3
while
True
:
if
i
>=
0
:
print
(
"你还有"
,
i
,
"次登录的次数"
)
i
=
i
-
1
d_z
=
input
(
"请输入登录的账号:"
)
d_m
=
input
(
"请输入登录的密码:"
)
if
d_z
==
f_z
and
d_m
==
f_m
:
print
(
"登录成功~"
)
break
elif
f_z
!=
d_z
:
print
(
"账号不正确,请重新输入"
)
continue
elif
f_m
!=
d_m
:
print
(
"密码不正确,请重新输入"
)
continue
else
:
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