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
6ed2ad31
authored
Jan 24, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
b3572cb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
diy.1.py
diy1.py
diy.1.py
View file @
6ed2ad31
...
...
@@ -4,12 +4,12 @@ pen1.pensize(5)
pen1
.
fillcolor
(
"pink"
)
pen1
.
begin_fill
()
pen1
.
left
(
45
)
pen1
.
forward
(
1
00
)
pen1
.
forward
(
2
00
)
pen1
.
circle
(
5
0
,
180
)
pen1
.
circle
(
10
0
,
180
)
pen1
.
right
(
90
)
pen1
.
circle
(
5
0
,
180
)
pen1
.
circle
(
10
0
,
180
)
pen1
.
left
(
0
)
pen1
.
forward
(
1
00
)
pen1
.
forward
(
2
00
)
pen1
.
end_fill
()
turtle
.
done
()
\ No newline at end of file
diy1.py
View file @
6ed2ad31
# 利用write()帮助悟空给诺依回信吧~
import
turtle
# pen=turtle.Pen()
# pen.write("Hi,诺依。\n我也会用turtle模块了!",font=("Time",40,"normal"))
# pen.hideturtle()
# turtle.done()
pen
=
turtle
.
Pen
()
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"Hi,诺依。
\n
我也会用turtle模块了!
\n
——悟空"
,
font
=
(
"Time"
,
10
,
"normal"
))
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
.
pensize
(
0
)
pen1
.
pencolor
(
"pink"
)
pen1
.
fillcolor
(
"pink"
)
pen1
.
begin_fill
()
pen1
.
left
(
45
)
pen1
.
forward
(
100
)
...
...
@@ -13,4 +20,8 @@ pen1.right(90)
pen1
.
circle
(
50
,
180
)
pen1
.
left
(
0
)
pen1
.
forward
(
100
)
turtle
.
done
()
\ No newline at end of file
pen1
.
end_fill
()
turtle
.
done
()
hideturtle
()
screen
=
turtle
.
Screen
()
screen
.
color
(
"red"
)
\ 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