Commit 6e957d78 by BellCodeEditor

save project

parent 247382ff
Showing with 2 additions and 2 deletions
...@@ -6,7 +6,7 @@ pen.color('sienna') ...@@ -6,7 +6,7 @@ pen.color('sienna')
w = turtle.Screen() w = turtle.Screen()
w.bgcolor('wheat') w.bgcolor('wheat')
pen.down() # wheat小麦 pen.down() # wheat小麦
pen.seth(90)
# 移动到起点 # 移动到起点
def tree(n): def tree(n):
if n >= 50: if n >= 50:
...@@ -17,7 +17,7 @@ def tree(n): ...@@ -17,7 +17,7 @@ def tree(n):
tree(n-50) tree(n-50)
pen.right(30) pen.right(30)
pen.up() pen.up()
pen.backward(50) # 后退 pen.backward(n) # 后退
pen.down() pen.down()
tree(100) tree(100)
......
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