Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-1_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
e8b2ac81
authored
Aug 27, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5703efdb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
diy2.py
diy2.py
View file @
e8b2ac81
import
turtle
import
turtle
# pen=turtle.Pen()
# pen.write("东临碣石,以观沧海。\n水何澹澹,山岛竦峙。\n树木丛生,百草丰茂。\n秋风萧瑟,洪波涌起。\n日月之行,若出其中;\n星汉灿烂,若出其里。\n幸甚至哉,歌以咏志。",font=("Times",30,"normal"))
# pen.hideturtle()
# turtle.done()
pen
=
turtle
.
Pen
()
pen
=
turtle
.
Pen
()
pen
.
write
(
"东临碣石,以观沧海。
\n
水何澹澹,山岛竦峙。
\n
树木丛生,百草丰茂。
\n
秋风萧瑟,洪波涌起。
\n
日月之行,若出其中;
\n
星汉灿烂,若出其里。
\n
幸甚至哉,歌以咏志。"
,
font
=
(
"Times"
,
30
,
"normal"
)
pen
.
pencolor
(
"red"
)
turtle
.
done
pen
.
pensize
(
10
)
\ No newline at end of file
pen
.
left
(
45
)
pen
.
forward
(
100
)
pen
.
circle
(
50
,
180
)
pen
.
right
(
90
)
pen
.
circle
(
50
,
180
)
pen
.
forward
(
100
)
\ 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