Commit 0a549a56 by BellCodeEditor

save project

parent be6b79cc
Showing with 12 additions and 8 deletions
...@@ -11,13 +11,17 @@ t.left(90) ...@@ -11,13 +11,17 @@ t.left(90)
t.up() t.up()
t.backward(150) # 后退 t.backward(150) # 后退
t.down() t.down()
t.forward(100) def shu(n):
t.right(30) if n >= 50:
t.forward(50) t.forward(n)
t.up() t.right(30)
t.backward(50) shu(n-50)
t.down() t.left(60)
t.left(60) shu(n-50)
t.forward(50) t.right(30)
t.penup()
t.backward(n)
t.pendown()
shu(100)
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