Commit d53de22a by BellCodeEditor

save project

parent d88fd36a
Showing with 6 additions and 4 deletions
...@@ -2,7 +2,6 @@ import turtle ...@@ -2,7 +2,6 @@ import turtle
pen = turtle.Turtle() pen = turtle.Turtle()
pen.color('sienna') pen.color('sienna')
pen.pensize(10)
# 画布大小 # 画布大小
w = turtle.Screen() w = turtle.Screen()
w.bgcolor('wheat') # wheat小麦 w.bgcolor('wheat') # wheat小麦
...@@ -17,10 +16,13 @@ def tree(a): ...@@ -17,10 +16,13 @@ def tree(a):
pen.forward(a) pen.forward(a)
pen.left(30) pen.left(30)
pen.forward(a-50) pen.forward(a-50)
pen.forward(50-a) pen.up()
pen.left(-60) pen.backward(a-50)
pen.down()
pen.right(60)
pen.forward(a-50) pen.forward(a-50)
pen.forward(50-a) pen.up()
pen.backward(a-50)
pen.left(30) pen.left(30)
pen.forward(-a) pen.forward(-a)
tree(100) tree(100)
......
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