Commit da4625b6 by BellCodeEditor

auto save

parent e67fa28f
Showing with 0 additions and 22 deletions
......@@ -6,7 +6,6 @@ pen.color('sienna')
w = turtle.Screen()
w.bgcolor('wheat') # wheat小麦
pen.speed(0)
def tree(n):
if n>=0:
angle = random.randint(15,30)
......@@ -25,34 +24,13 @@ def tree(n):
pen.left(2*angle)
tree(tree_lenth)
pen.right(angle)
pen.up()
pen.bk(n)
pen.down()
# 移动到起点
pen.left(90)
pen.up()
pen.backward(150) # 后退
pen.down()
# pen.fd(100)
# pen.right(30)
# pen.fd(50)
# pen.up()
# pen.bk(50)
# pen.down()
# pen.left(60)
# pen.right(30)
# pen.up()
# pen.bk(100)
# pen.down()
tree(60)
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