Commit be2b84b9 by BellCodeEditor

auto save

parent a075876f
Showing with 10 additions and 1 deletions
...@@ -12,4 +12,12 @@ pen.up() ...@@ -12,4 +12,12 @@ pen.up()
pen.backward(150) # 后退 pen.backward(150) # 后退
pen.down() pen.down()
turtle.done()
def tree(n):
turtle.forward(n)
turtle.right(30)
turtle.forward(n/2)
turtle.left(80)
turtle.forward(n/2)
tree(300)
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