Commit ca73f412 by BellCodeEditor

save project

parent b7c58ca8
Showing with 14 additions and 2 deletions
import turtle
pen = turtle.Turtle()
def tree(n):
if n>=50:
pen.forward(n)
pen.right(30)
tree(n-1)
pen.left(60)
treen(n-10)
pen.right(30)
pen.up()
pen.backward(n)
pen.down()
pebpen = turtle.Turtle()
pen.color('sienna')
# 画布大小
w = turtle.Screen()
......@@ -12,7 +24,7 @@ pen.up()
pen.backward(150) # 后退
pen.down()
pen.forward(100)
pen.forward(100)
pen.right(30)
pen.forward(50)
pen.up()
......
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