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
154fcb97
authored
Nov 22, 2020
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
db4ec920
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
hello
hello.py
hello
0 → 100644
View file @
154fcb97
hello.py
0 → 100644
View file @
154fcb97
import
turtle
#导入turtle
pen
=
turtle
.
Pen
()
#创建一个画笔
pen
.
speed
(
1000
)
#设置填充速度
pen
.
shape
(
"classic"
)
#改变画笔形状
pen
.
fillcolor
(
""
)
#选择颜色
pen
.
begin_fill
()
#开始填充
for
i
in
range
(
1000
):
pen
.
forward
(
200
)
pen
.
right
(
180
)
pen
.
left
(
32
)
pen
.
end_fill
()
#结束填充
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