Commit 636713c5 by BellCodeEditor

auto save

parent 464f31d3
Showing with 4 additions and 2 deletions
import turtle
import random
pen = turtle.Turtle()
pen.color('sienna')
# 画布大小
......@@ -13,8 +13,10 @@ pen.backward(150) # 后退
pen.down()
pen.speed(0)
def tree(n):
if n>=-10:
if n>=0:
pen.forward(n)
angel=random.randint(0,30)
= random.
pen.right(30)
tree(n-10)
pen.left(60)
......
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