多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
:-: **绘制一朵小红花** ![](http://h.yiniuedu.com/c93350a0461de82dd8c32f5561d5ed55) ``` import turtle as t t.penup() t.fd(-200) t.write("一朵小红花\n", align="right", font=("楷体", 16, "bold")) def draw_leaf(): for i in range(2): for j in range(15): t.forward(5) t.right(6) t.right(90) t.goto(0,-150) t.left(90) t.down() t.forward(50) t.fillcolor("green") t.begin_fill() draw_leaf() t.end_fill() t.forward(50) t.right(270) t.fillcolor("green") t.begin_fill() draw_leaf() t.end_fill() t.right(90) t.forward(130) t.fillcolor("red") t.begin_fill() for i in range(6): draw_leaf() t.right(60) t.end_fill() t.done() ```