Commit 20f8e922 by BellCodeEditor

save project

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