Commit 3d1d0b83 by BellCodeEditor

save project

parent 985f12dd
Showing with 11 additions and 14 deletions
......@@ -12,20 +12,17 @@ pen.up()
pen.backward(150) # 后退
pen.down()
pen.pensize(5)
def s():
pen.forward(100)
pen.right(30)
pen.forward(50)
pen.up()
pen.backward(50)
pen.down()
pen.left(60)
pen.forward(50)
pen.up()
pen.backward(50)
pen.right(30)
pen.backward(100)
pen.down()
def s(n):
if n>=50:
pen.forward(n)
pen.right(30)
s(n-10)
pen.up()
pen.left(60)
s(n-10)
pen.right(30)
pen.backward(n)
pen.down()
s()
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