Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson14_3
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
8156cfb4
authored
Mar 12, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
e353159c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
da5.py
da5.py
0 → 100644
View file @
8156cfb4
# 利用write()帮助悟空给诺依回信吧~
#导入turtle模块
import
turtle
screen
=
turtle
.
Screen
()
#设置画布颜色
screen
.
bgcolor
(
"pink"
)
#创建画笔
pen
=
turtle
.
Pen
()
pep
()
n
.
penu
pen
.
goto
(
100
,
0
)
pen
.
write
(
"编辑器真好用"
,
font
=
(
"Times"
,
20
,
"normal"
))
#隐藏鼠标
pen
.
hideturtle
()
pen
.
pendown
()
pen1
=
turtle
.
Pen
()
#设置画笔颜色
pen1
.
pencolor
(
"red"
)
#设置画笔粗细
pen1
.
pensize
(
20
)
#隐藏画布1
pen1
.
hideturtle
()
#画爱心
#旋转方向
pen1
.
left
(
45
)
#边长为100
pen1
.
forward
(
100
)
#画半圆
pen1
.
circle
(
50
,
180
)
#右转
pen1
.
right
(
90
)
pen1
.
circle
(
50
,
180
)
#边长为100
pen1
.
forward
(
100
)
#固定画布
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