Commit a9da6ae9 by BellCodeEditor

save project

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