python turtle 绘制樱花树
python turtle 绘制樱花树1、樱花树import turtlefrom random import *from math import *def tree(n, l):turtle.pendown() # 下笔# 阴影效果t = cos(radians(turtle.heading() + 45))/8 + 0.25turtle.pencolor(t, t, t)...
原创
2019-12-10 14:48:26 ·
7523 阅读 ·
5 评论