Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson1_1
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
277edda7
authored
Feb 26, 2020
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
8e078458
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletions
hello.py
hello.py
View file @
277edda7
...
@@ -29,7 +29,7 @@ for i in range(5):
...
@@ -29,7 +29,7 @@ for i in range(5):
Pen.left(144)
Pen.left(144)
turtle.done()
turtle.done()
'''
import turtle
import turtle
Pen = turtle.Pen()
Pen = turtle.Pen()
Pen.fillcolor("blue")
Pen.fillcolor("blue")
...
@@ -39,6 +39,31 @@ for i in range(5):
...
@@ -39,6 +39,31 @@ for i in range(5):
Pen.left(144)
Pen.left(144)
Pen.end_fill()
Pen.end_fill()
turtle.done()
turtle.done()
'''
#设置太阳花
import
turtle
Pen
=
turtle
.
Pen
()
#画笔的速度
Pen
.
speed
(
500
)
#画笔的颜色
Pen
.
color
(
"blue"
)
#画笔填充颜色
Pen
.
fillcolor
(
"red"
)
#填充开始
Pen
.
begin_fill
()
#画笔的移动
for
i
in
range
(
36
):
Pen
.
forward
(
200
)
Pen
.
left
(
170
)
#填充结束
Pen
.
end_fill
()
turtle
.
done
()
...
...
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