Commit a9da6ae9 by BellCodeEditor

save project

parent 7d7aa0fd
Showing with 8 additions and 5 deletions
......@@ -13,9 +13,12 @@ pen.up()
pen.backward(150) # 后退
pen.down()
def t(n):
pen.forward(n)
pen.right(30)
t(n-10)
pen.left(60)
t(n-10)
if n>0:
pen.forward(n)
pen.right(30)
t(n-10)
pen.left(60)
t(n-10)
pem.backward(n)
t(50)
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