Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_2
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
3c945e9e
authored
Jun 16, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
98695936
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
12 deletions
1.py
2.py
8.py
diy2.py
1.py
0 → 100644
View file @
3c945e9e
i
=-
1
while
i
<
5
:
i
+=
1
if
i
==
3
:
continue
print
(
i
)
\ No newline at end of file
2.py
0 → 100644
View file @
3c945e9e
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"pink"
)
pen
.
turtle
turtle
.
done
()
\ No newline at end of file
8.py
0 → 100644
View file @
3c945e9e
i
=
10000
username
=
"python"
userpassword
=
"123456"
while
True
:
if
i
>
0
:
name
=
input
(
"名字:"
)
password
=
input
(
"密码:"
)
i
-=
1
if
name
==
username
and
password
==
userpassword
:
print
(
"登录成功"
)
break
if
name
!=
username
:
print
(
"名字错误"
)
print
(
"您还有"
+
str
(
i
)
+
"次登录机会"
)
continue
if
password
!=
userpassword
:
print
(
"密码错误"
)
print
(
"您还有"
+
str
(
i
)
+
"次登录机会"
)
else
:
print
(
"账号被冻结"
)
exit
()
print
(
"欢迎来到贝尔编程"
)
\ No newline at end of file
diy2.py
View file @
3c945e9e
i
=
3
username
=
"别他妈动 "
userpassword
=
"54188 14524"
while
True
:
name
=
input
(
"名字:"
)
password
=
input
(
"密码:"
)
if
name
==
username
and
password
==
userpassword
:
print
(
"成功!"
)
break
if
name
!=
username
:
print
(
"name从输:"
)
continue
if
password
!=
userpassword
:
print
(
"password从输:"
)
userpassword
=
"54188 14524 "
while
True
:
if
i
>
0
:
name
=
input
(
"名字:"
)
password
=
input
(
"密码:"
)
i
-=
i
if
name
==
username
and
password
==
userpassword
:
print
(
"成功!"
)
break
if
name
!=
username
:
print
(
"name从输:"
)
continue
if
password
!=
userpassword
:
print
(
"password从输:"
)
else
:
print
(
"滚!明天再来"
)
print
(
"真棒"
)
\ 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