Commit 5e7f560e by BellCodeEditor

save project

parent 5e5c14d1
Showing with 2 additions and 2 deletions
......@@ -13,7 +13,7 @@ pen.backward(150) # 后退
pen.down()
pen.speed(1000)
def tree(n):
if n>=0:
if n>=50:
pen.forward(n)
pen.right(30)
tree(n-20)
......@@ -23,5 +23,5 @@ def tree(n):
pen.up()
pen.backward(n)
pen.down()
tree(100)
tree(150)
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