Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson1_5
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
ce5828a7
authored
Jun 29, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
3efb6e66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
star.py
star.py
View file @
ce5828a7
import
turtle
#导入画笔
import
turtle
#导入画笔
open
=
turtle
.
p
en
()
#打开画布
p
=
turtle
.
P
en
()
#打开画布
p
en
.
fillcolor
(
"red"
)
#设置颜色
p
.
fillcolor
(
"red"
)
#设置颜色
p
en
.
begin_fill
()
#开始填充
p
.
begin_fill
()
#开始填充
for
i
in
range
(
5
)
#重复执行
for
i
in
range
(
5
)
:
#重复执行
p
en
.
forward
(
200
)
#画五脚星
p
.
forward
(
200
)
#画五脚星
p
en
.
right
(
144
)
p
.
right
(
144
)
pen
.
hideturtle
()
p
.
hideturtle
()
pen
.
end
fill
()
p
.
end_
fill
()
pen
.
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