Commit 76d73008 by BellCodeEditor

auto save

parent 3479fd84
Showing with 0 additions and 5 deletions
......@@ -39,6 +39,4 @@ pen.penup()
pen.backward(100)
pen.pendown()
turtle.done()
......@@ -12,7 +12,6 @@ def tree(n):
pen.color('sienna') # 赭(zhě)色
pen.pensize(n / 10)
pen.forward(n)
#画出右边树枝并返回
#随机樱花树的树杈的角度
......@@ -23,9 +22,7 @@ def tree(n):
tree(n-length)
#向左
pen.left(2*angle)
tree(n-length)
#
pen.right(angle)
pen.penup()
pen.backward(n)
......
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