Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-5_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
25d99652
authored
Apr 10, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
1eaa3fbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
n.py
n.py
View file @
25d99652
import
turtle
import
turtle
pen
=
turtle
.
Pen
()
# pen=turtle.Pen()
pen
.
write
(
"沐浴在夕阳下
\n
一轮暖阳,两个身影"
,
font
=
"方正硬笔楷书"
,
30
,
"normal"
)
# pen.write("沐浴在夕阳下\n一轮暖阳,两个身影\n目光是同一个方向\n人间值得,有你真好!",font=("方正硬笔楷书简体",30,"norm))
pen
.
hideturtle
()
# pen.hideturtle()
pen
.
done
()
# pen.done()
\ No newline at end of file
p1
=
turtle
.
Pen
()
p1
.
pensize
(
5
)
p1
.
pencolor
(
"red"
)
p1
.
fillcolor
(
"red"
)
p1
.
begin_fill
()
p1
.
left
(
45
)
p1
.
forward
(
100
)
p1
.
circle
(
50
,
180
)
p1
.
right
(
90
)
p1
.
circle
(
50
,
180
)
p1
.
forward
(
100
)
p1
.
end_fill
()
p1
.
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