Commit 83c37898 by BellCodeEditor

save project

parent a075876f
Showing with 9 additions and 1 deletions
import turtle
def tree(n):
if 50>= 50:
pen.fd(n)
pen.right(30)
tree(n-50)
pen = turtle.Turtle()
pen.color('sienna')
# 画布大小
......@@ -12,4 +19,4 @@ pen.up()
pen.backward(150) # 后退
pen.down()
turtle.done()
turtle.done()
\ No newline at end of file
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