Commit 35bb7f9d by BellCodeEditor

save project

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