Commit e48bc6a4 by BellCodeEditor

save project

parent ecd31f5c
Showing with 3 additions and 4 deletions
......@@ -9,7 +9,7 @@ w.bgcolor('wheat') # wheat小麦
# 移动到起点
pen.left(90)
pen.up()
pen.backward(250) # 后退
pen.backward(150) # 后退
pen.down()
# pen.fd(100)
......@@ -23,9 +23,9 @@ def tree(n):
if n >= 50:
pen.fd(n)
pen.right(30)
tree(n-10)
tree(n-50)
pen.left(60)
tree(n-10)
tree(n-50)
pen.right(30)
pen.up()
pen.backward(n)
......@@ -33,4 +33,3 @@ def tree(n):
tree(100)
turtle.done()
pen.speed(0)
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