Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson22-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
ca1ac4ee
authored
Jan 27, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
f40d9112
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
35 additions
and
6 deletions
turn/a2.py → img/a2.py
turn/a3.py → img/a3.py
turn/a4.py → img/a4.py
turn/a5.py → img/a5.py
turn/a6.py → img/a6.py
img/a7.py
img/a8.py
turn/a.4
turn
/a2.py
→
img
/a2.py
View file @
ca1ac4ee
File moved
turn
/a3.py
→
img
/a3.py
View file @
ca1ac4ee
File moved
turn
/a4.py
→
img
/a4.py
View file @
ca1ac4ee
import
turtle
t
.
penup
()
t
.
goto
(
-
200
,
0
)
text
=
"你好,我的名字是小小"
...
...
turn
/a5.py
→
img
/a5.py
View file @
ca1ac4ee
File moved
turn
/a6.py
→
img
/a6.py
View file @
ca1ac4ee
File moved
img/a7.py
View file @
ca1ac4ee
...
...
@@ -2,11 +2,14 @@ import turtle
import
random
t
=
turtle
.
Turtle
()
t
.
penup
()
t
.
goto
(
-
200
,
0
)
text
=
"你好,我的名字叫小贝"
for
i
in
text
:
font_size
=
random
.
randint
(
10
,
30
)
text_color
=
(
random
.
random
(),
random
.
random
(),
random
.
random
())
t
.
color
(
text_color
)
t
.
pendown
()
t
.
write
(
i
,
font
=
(
"Arial"
,
font_size
,
"normal"
))
jump_distance
=
random
.
randint
(
20
,
50
)
...
...
img/a8.py
0 → 100644
View file @
ca1ac4ee
import
turtle
import
random
turtle
.
bgcolor
(
"red"
)
def
draw_blade
(
length
):
turtle
.
begin_fill
()
for
_
in
range
(
3
):
turtle
.
forward
(
length
)
turtle
.
left
(
120
)
turtle
.
end_fill
()
num_blades
=
5
a
=
120
turtle
.
pensize
(
20
)
turtle
.
color
(
"yellow"
)
turtle
.
setheading
(
270
)
turtle
.
forward
(
300
)
turtle
.
backward
(
300
)
turtle
.
pensize
(
3
)
for
_
in
range
(
num_blades
):
color
=
(
random
.
random
(),
random
.
random
(),
random
.
random
())
turtle
.
color
(
color
)
draw_blade
(
a
)
turtle
.
left
(
360
/
num_blades
)
turtle
.
hideturtle
()
turtle
.
done
()
turn/a.4
deleted
100644 → 0
View file @
f40d9112
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