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
04ec18d2
authored
Jul 03, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
0f945d1a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
36 deletions
.py
1.py
2.py
89678.py
diy2.py
py.py
。
.py
0 → 100644
View file @
04ec18d2
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
pen
.
pensize
(
10
)
screen
.
bgcolor
(
"black"
)
color
=
[
"green"
,
"light yellow"
,
"light green"
]
pen
.
speed
(
100
)
for
i
in
range
(
1
,
300
,
1
):
pen
.
color
(
color
[
i
%
3
])
pen
.
forward
(
i
)
pen
.
right
(
120
)
pen1
=
turtle
.
Pen1
()
pen1
.
penup
()
pen1
.
goto
(
100
,
-
100
)
pen1
.
write
(
"端午节
\n
快乐!"
,
font
=
(
Times
,
"20"
,
"normal"
))
pen1
.
color
(
"white"
)
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
1.py
View file @
04ec18d2
i
=-
1
while
i
<
5
:
i
+=
1
if
i
==
3
:
continue
print
(
i
)
\ No newline at end of file
\ No newline at end of file
2.py
View file @
04ec18d2
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"pink"
)
pen
.
turtle
turtle
.
done
()
\ No newline at end of file
89678.py
0 → 100644
View file @
04ec18d2
import
turtle
pen
=
turtle
.
Pen
()
color
[
"yellow"
,
"red"
]
for
i
in
range
(
1
,
300
,
500
):
pen
.
color
(
color
[
1
%
2
])
pen
.
forward
(
i
)
pen
.
right
(
91
)
pen
.
speed
()
diy2.py
View file @
04ec18d2
i
=
20
username
=
"他妈的别动 "
userpassword
=
"54188 1452"
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
*
7
/
14
**
2
+
999
)
+
"次登录机会"
)
continue
if
password
!=
userpassword
:
print
(
"密码错误"
)
print
(
"您还有"
+
str
(
i
*
7
/
14
**
2
+
999
)
+
"次登录机会"
)
else
:
print
(
"账号被冻结"
)
exit
()
print
(
"欢迎来到贝尔编程"
)
\ No newline at end of file
import
turtle
turtle
.
pencolor
(
"red"
)
pen
=
turtle
.
Pen
()
for
i
in
range
(
1
,
300
,
3
):
pen
.
forward
(
i
)
pen
.
right
(
91
)
pen
.
hideturtle
()
turtle
.
pencolor
(
"red"
)
turtle
.
done
()
\ No newline at end of file
py.py
0 → 100644
View file @
04ec18d2
for
i
in
range
(
1
,
10
):
for
j
in
range
(
1
,
i
+
1
):
print
(
j
,
"*"
,
i
,
"="
,(
j
*
i
),
end
=
" "
)
print
()
\ No newline at end of file
。
0 → 100644
View file @
04ec18d2
++ "b/\343\200\202"
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