用到的包
from turtle import *
import random
树的主体(递归)
def drawTree(length):
if length > 1:
if length < 30 and length > 14:#缩小一下树干
pensize(4)
elif length < 15 and length > 5:#长度这个范围内那么就是绿叶
color('#04B486')#
pensize(3)