Commit 0a549a56 by BellCodeEditor

save project

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