Commit 35bb7f9d by BellCodeEditor

save project

parent a075876f
Showing with 21 additions and 6 deletions
import turtle
pen = turtle.Turtle()
pen.color('sienna')
a = turtle.Pen()
a.color('sienna')
# 画布大小
w = turtle.Screen()
w.bgcolor('wheat') # wheat小麦
# 移动到起点
pen.left(90)
pen.up()
pen.backward(150) # 后退
pen.down()
a.left(90)
a.up()
a.backward(150) # 后退
a.down()
a.forward(100)
a.right(30)
a.forward(50)
a.up()
a.backward(50)
a.left(60)
a.down()
a.forward(50)
a.up()
a.backward(50)
a.right(30)
a.backward(100)
a.down()
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