#导入模块,设置画笔尺寸 import turtle as t t.pensize(10) #设置初始位置 t.penup() t.goto(0,-300) t.pendown() #绘制叶片 t.color('green','green') t.begin_fill() t.setheading(90) t.circle(150,80) t.setheading(-90) t.circle(150,80) t.setheading(90) t.circle(-150,80) t.setheading(-90) t.circle(-150,80) t.end_fill() #绘制花杆 t.pencolor('brown') t.goto(0,0) #绘制花瓣 t.setheading(0) t.color('red','red') t.begin_fill() for i in range(5): t.circle(50) t.left(72) t.end_fill() #绘制花蕊 t.pencolor('yellow') t.dot(100) #隐藏画笔 t.hideturtle() t.done()