Commit 20f8e922 by BellCodeEditor

save project

parent a075876f
Showing with 13 additions and 7 deletions
import turtle
pen = turtle.Turtle()
pen.color('sienna')
p = turtle.Turtle()
p.color('sienna')
# 画布大小
w = turtle.Screen()
w.bgcolor('wheat') # wheat小麦
w.bgcolor('black') # wheat小麦
# 移动到起点
pen.left(90)
pen.up()
pen.backward(150) # 后退
pen.down()
p.left(90)
p.up()
p.backward(150) # 后退
p.down()
p.forward(100)
p.left(30)
p.forward(90)
p.forward(-90)
p.left(-60)
p.forward(90)
turtle.done()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment