import turtle turtle.speed(10) turtle.pensize(1.5) turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(28,134,238) turtle.circle(120,360) turtle.end_fill() turtle.penup() turtle.circle(120,15) turtle.pendown() turtle.begin_fill() turtle.fillcolor(255,255,255) turtle.circle(100,360) turtle.end_fill() turtle.penup() turtle.circle(100,140) turtle.seth(90) turtle.pendown() turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(255,255,255) turtle.circle(32,360) turtle.penup() turtle.circle(32,193) turtle.pendown() turtle.circle(-32,360) turtle.end_fill() turtle.seth(90) turtle.penup() turtle.circle(18,230) turtle.seth(-90) turtle.pendown() turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(0,0,0) turtle.circle(10,360) turtle.penup() turtle.circle(10,120) turtle.seth(80) turtle.fd(7) turtle.pendown() turtle.end_fill() turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(255,255,255) turtle.circle(4,360) turtle.end_fill() turtle.seth(20) turtle.penup() turtle.fd(31) turtle.seth(-90) turtle.pendown() turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(0,0,0) turtle.circle(10,360) turtle.penup() turtle.circle(10,22) turtle.seth(-20) turtle.fd(7) turtle.pendown() turtle.end_fill() turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(255,255,255) turtle.circle(4,360) turtle.end_fill() turtle.seth(-90) turtle.penup() turtle.fd(90) turtle.seth(0) turtle.fd(100) turtle.seth(90) turtle.fd(145) turtle.seth(100) l=5 for i in range(104): if 77<=i<=103: turtle.pendown() else: turtle.penup() if 0<=i<30 or 60<=i<90: l=l+0.1 turtle.lt(3) turtle.fd(l) else: l=l-0.1 turtle.lt(3) turtle.fd(l) turtle.penup() turtle.seth(-128) turtle.fd(14.1) turtle.pendown() turtle.seth(-60) turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(255,0,0) turtle.circle(-81,212.7) turtle.end_fill() turtle.seth(13.5) turtle.fd(155) turtle.penup() turtle.seth(-126) turtle.fd(-14.7) turtle.seth(90) turtle.pendown() turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(255,255,255) turtle.circle(15,140) turtle.end_fill() turtle.penup() turtle.seth(-170) turtle.fd(145) turtle.pendown() turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(255,255,255) turtle.circle(15,180) turtle.end_fill() turtle.penup() turtle.circle(15,130) turtle.pendown() turtle.circle(15,50) turtle.penup() turtle.seth(27.5) turtle.fd(78.4) turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(227,23,13) turtle.pendown() turtle.circle(-15,360) turtle.end_fill() turtle.seth(-30) turtle.penup() turtle.fd(13) turtle.pendown() turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(255,255,255) turtle.pencolor(255,255,255) turtle.circle(-6,360) turtle.end_fill() turtle.pencolor(0,0,0) turtle.penup() turtle.seth(-96) turtle.fd(22) turtle.pendown() turtle.seth(-76) turtle.fd(24) turtle.penup() turtle.fd(3.5) turtle.seth(40) turtle.fd(25) turtle.pendown() turtle.seth(-8) turtle.fd(75) turtle.penup() turtle.seth(172) turtle.fd(80) turtle.seth(83) turtle.fd(10) turtle.pendown() turtle.seth(10) turtle.fd(94) turtle.penup() turtle.seth(185) turtle.fd(99) turtle.pendown() turtle.seth(28) turtle.fd(94) turtle.penup() turtle.seth(24) turtle.fd(-128) turtle.pendown() turtle.seth(175) turtle.fd(94) turtle.penup() turtle.seth(175) turtle.fd(-94) turtle.seth(-74) turtle.fd(10) turtle.pendown() turtle.seth(-173) turtle.fd(94) turtle.penup() turtle.seth(-173) turtle.fd(-94) turtle.seth(-80) turtle.fd(9) turtle.pendown() turtle.seth(-150) turtle.fd(75) turtle.penup() turtle.seth(-34.3) turtle.fd(89.5) turtle.pendown() turtle.begin_fill() turtle.colormode(255) turtle.fillcolor(255,127,80) turtle.circle(40,110) turtle.circle(20,186) turtle.penup() turtle.circle(20,53) turtle.seth(75.2) turtle.pendown() turtle.penup() turtle.circle(20,61) turtle.pendown() turtle.circle(20,207) turtle.end_fill() turtle.penup() turtle.fd(200)标签:turtle,penup,seth,画图,第一次,circle,255,fill From: https://www.cnblogs.com/mugua103/p/16888037.html