Commit a1a0cdba by BellCodeEditor

save project

parent 6a033665
Showing with 4 additions and 3 deletions
......@@ -12,7 +12,7 @@ pen.up()
pen.backward(150) # 后退
pen.down()
def tree(n)
def tree(n):
if n>=50:
pen.forward(n)
pen.right(30)
......@@ -20,8 +20,8 @@ def tree(n)
pen.left(60)
tree(n-10)
pen.right(30)
pen.up
pen.up()
pen.backward(n)
pen.down
pen.down()
tree(100)
turtle.done
\ No newline at end of file
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