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
ea8ce040
authored
Sep 04, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
d6b4a235
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
Day1.py
Day1.py
View file @
ea8ce040
import
turtle
import
turtle
screen
=
turtle
.
Screen
()
#
screen=turtle.Screen()
screen
.
bgcolor
(
"blue"
)
#
screen.bgcolor("blue")
pen
=
turtle
.
Pen
()
#
pen=turtle.Pen()
pen
.
penup
()
#
pen.penup()
pen
.
goto
(
100
,
-
100
)
#
pen.goto(100,-100)
pen
.
write
(
"你好呀"
,
font
=
(
"Times"
,
20
,
"normal"
))
#
pen.write("你好呀",font=("Times",20,"normal"))
pen1
=
turtle
.
Pen
()
#创建新画笔pen1
#设置画笔大小
pen1
.
pensize
(
10
)
#设置画笔颜色
pen1
.
pencolor
(
"red"
)
#绘制爱心
#左转45°
turtle
.
done
()
#移动100步
\ No newline at end of file
#画一个半径为50的半圆
#右转90°
#画一个半径为50的半圆
#移动100步
#保存画布
\ 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