Commit 445abc75 by BellCodeEditor

save project

parent a30b5825
Showing with 8 additions and 10 deletions
......@@ -6,6 +6,12 @@ pen.color('sienna')
w = turtle.Screen()
w.bgcolor('wheat') # wheat小麦
def tree(n):
pen.forward(n)
pen.up()
pen.backward(n)
pen.down()
# 移动到起点
pen.left(90)
pen.up()
......@@ -14,18 +20,10 @@ pen.down()
pen.forward(100)
pen.right(30)
pen.forward(50)
pen.up()
pen.backward(50)
pen.down()
tree(50)
pen.left(60)
pen.forward(50)
pen.up()
pen.backward(50)
tree(50)
pen.right(30)
pen.backward(100)
pen.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