Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-2_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
8f017dca
authored
May 20, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
53039832
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
diy1.py
diy1.py
View file @
8f017dca
...
@@ -12,16 +12,21 @@
...
@@ -12,16 +12,21 @@
# goto(30,-100)
# goto(30,-100)
# write("你干嘛",font=("times",30,"normal"))
# write("你干嘛",font=("times",30,"normal"))
# done()
# done()
importi
turtle
import
turtle
screen
=
turtle
len
=
30
screen
=
turtle
.
Screen
()
pen
=
turtle
.
Pen
()
screen
.
bgcolor
(
'light blue'
)
screen
.
bgcolor
(
'light blue'
)
pen
.
color
(
'red'
)
pen
.
color
(
'red'
)
pen
.
left
(
45
)
pen
.
left
(
45
)
pen
.
forward
(
100
)
pen
.
forward
(
len
*
2
)
pen
.
circle
(
50
,
180
)
pen
.
circle
(
len
,
180
)
pen
.
right
(
90
)
pen
.
right
(
90
)
pen
.
circle
(
50
,
180
)
pen
.
circle
(
len
,
180
)
pen
.
forward
(
100
)
pen
.
forward
(
len
*
2
)
pen
.
penup
()
pen
.
penup
()
pen
.
goto
(
100
,
100
)
pen
.
goto
(
100
,
100
)
pen
.
pen
.
pencolor
(
"black"
)
\ No newline at end of file
pen
.
hideturtle
turtle
.
done
()
\ 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