Commit cfc632bc by BellCodeEditor

auto save

parent 43f27a09
Showing with 4 additions and 3 deletions
...@@ -8,8 +8,9 @@ def tree(n): # 画树枝 ...@@ -8,8 +8,9 @@ def tree(n): # 画树枝
tree(n-10) tree(n-10)
pen.left(60) pen.left(60)
tree(n-10) tree(n-10)
pen.right(20) pen.right(30)
pen.backward(n)
pen.down()
pen = turtle.Turtle() pen = turtle.Turtle()
pen.color('sienna') pen.color('sienna')
...@@ -23,6 +24,6 @@ pen.up() ...@@ -23,6 +24,6 @@ pen.up()
pen.backward(150) # 后退 pen.backward(150) # 后退
pen.down() pen.down()
tree(60) tree(50)
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