import turtle turtle.setup(0.5,0.75) turtle.fillcolor("red") turtle.begin_fill() turtle.left(90) turtle.penup() turtle.fd(100) turtle.pendown() turtle.right(90) turtle.circle(6,180) turtle.circle(20,70) turtle.seth(305) turtle.circle(20,150) turtle.seth(150) turtle.circle(40,80) turtle.seth(275) turtle.fd(23) print(turtle.pos()) turtle.seth(140) turtle.fd(5) turtle.seth(250) turtle.circle(50,120) turtle.seth(40) turtle.circle(65,85) turtle.seth(240) turtle.fd(13) print(turtle.pos()) turtle.seth(110) turtle.circle(72,17) turtle.end_fill() turtle.seth(280) turtle.fd(37) turtle.penup() turtle.goto(25.68,92.90) turtle.pendown() turtle.seth(270) turtle.circle(-100,20) turtle.circle(60,43) turtle.penup() turtle.goto(-31.12,80.21) turtle.pendown() turtle.circle(80,40) turtle.circle(-30,60) turtle.circle(100,40) print(turtle.pos()) turtle.circle(-120,25) print(turtle.pos()) turtle.circle(-200,20) turtle.penup() turtle.goto(49.27,-47.94) turtle.pendown() turtle.seth(20) turtle.fd(10) turtle.begin_fill() turtle.color("black","green") turtle.seth(90) turtle.circle(-30,130) turtle.seth(260) turtle.circle(-35,110) turtle.end_fill() turtle.seth(12) turtle.circle(70,37) turtle.penup() turtle.goto(75.63,-92.70) turtle.pendown() turtle.seth(175) turtle.fd(10) turtle.begin_fill() turtle.color("black","green") turtle.seth(120) turtle.circle(25,130) turtle.seth(310) turtle.circle(27,110) turtle.end_fill() turtle.seth(200) turtle.circle(-60,35)
玫瑰花怎么试也填充不完全。
原文:http://www.cnblogs.com/skm6/p/7757825.html