Commit 2cec3757 by BellCodeEditor

save project

parent 72f082d5
Showing with 13 additions and 11 deletions
......@@ -11,17 +11,19 @@ pen.left(90)
pen.up()
pen.backward(150) # 后退
pen.down()
pen.forward(n)
pen.right(30)
t(n-50)
pen.left(60)
t(n-50)
pen.right(30)
pen.up()
pen.backward(100)
pen.down()
pen.speed(100)
def t(n):
if n>=0:
pen.forward(n)
pen.right(30)
t(n-10)
pen.left(60)
t(n-10)
pen.right(30)
pen.up()
pen.backward(n)
pen.down()
t(60)
......
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