Commit c0701fcc by BellCodeEditor

save project

parent abb52d11
Showing with 2 additions and 1 deletions
...@@ -10,6 +10,7 @@ def tree(n): ...@@ -10,6 +10,7 @@ def tree(n):
pen.up() pen.up()
pen.backward(n) pen.backward(n)
pen.down() pen.down()
pen = turtle.Turtle() pen = turtle.Turtle()
pen.color('sienna') pen.color('sienna')
# 画布大小 # 画布大小
...@@ -18,5 +19,5 @@ w.bgcolor('wheat') # wheat小麦 ...@@ -18,5 +19,5 @@ w.bgcolor('wheat') # wheat小麦
# 移动到起点 # 移动到起点
tree(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