Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson5_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
da5116b6
authored
Jul 25, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5605a9ff
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
1.py
2.py
diy1.py
1.py
View file @
da5116b6
import
turtle
pen
=
turtle
.
Pen
()
distance
=
1
pen
.
speed
(
90000000
)
for
i
in
range
(
300
):
pen
.
speed
(
90000000
000000000000000000000000000000099090909
)
for
i
in
range
(
300
000000000000000000000000000000000000000000000000000000000000000000000000000000
):
pen
.
forward
(
distance
)
distance
+=
1
pen
.
right
(
91
)
...
...
2.py
0 → 100644
View file @
da5116b6
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
colors
=
[
"white"
,
"red"
,
"violet"
,
"cyan"
]
# 请创造师在下面接着创作
pen
.
speed
(
9000000999999999999999999999999999999999999999999999999999999999999999990
)
i
=
0
while
True
:
pen
.
forward
(
i
)
pen
.
pencolor
(
colors
[
i
%
4
])
i
=
i
+
1
pen
.
right
(
91
)
turtle
.
done
()
\ No newline at end of file
diy1.py
View file @
da5116b6
...
...
@@ -5,8 +5,8 @@ screen.bgcolor("light blue")
colors
=
[
"white"
,
"red"
,
"violet"
,
"cyan"
]
# 请创造师在下面接着创作
distance
=
1
pen
.
speed
(
90000000
)
for
i
in
range
(
1
,
300
):
pen
.
speed
(
9000000
99999999999999999999999999999999999999999999999999999999999999999
0
)
for
i
in
range
(
1
,
300
000000000000000000000
):
pen
.
pencolor
(
colors
[
i
%
4
])
pen
.
forward
(
i
)
pen
.
right
(
91
)
...
...
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