(30) t.end_fill() #嘴 t.color(239,69,19) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(-100) t.pd() t.seth 0) t.fd(-27) t.pd() t.seth(-160) t.circle(300,15) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20) t.circle (10) t.color((240,128,128)) t.pu() t.seth(90) t.fd(-75) t.seth(0) t.fd(-180) t.pd() t.seth(-90) t.fd( t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth(-90) t.fd(40) t.seth(-180) t.color("black") t.pensize
(165) fd(60) my_goto(-32, 125) seth(180) fd(60) my_goto(-32, 115) seth(193) fd(60) my_goto(37, 135) seth(15) fd(60) my_goto(37, 125) seth(0) fd(60 , 1) seth(-89) circle(-1000, 10) seth(180) fd(70) seth(90) circle(30, 180) seth(180) fd(70) seth(100) circle(-1000, 9) seth(-86) circle(1000, 2) seth(230 seth(0) fd(70) seth(-90) circle(-70, 180) seth(0) fd(70) # 铃铛 def bell():
) fd(20) seth(180) fd(20) seth(-60) fd(20) seth(50) fd(20) seth(-40) fd(30 ) seth(-130) fd(5) seth(135) fd(30) seth(-60) fd(30) seth(-150) fd(6) seth (15) seth(10) fd(15) seth(-60) fd(20) seth(-180) fd(5) seth(110) fd(20) seth (0)goto(0, 150)pendown()circle(10)seth(-15)fd(40)seth(90)fd(40)seth(200)fd(40)seth(160)fd(40)seth(-90 )fd(40)seth(15)fd(40)seth(-70)pencolor("#f799e6")pensize(4)fd(40)seth(-180)fd(10)seth(100)fd(40)seth(
() t.seth(-130) t.circle(100, 10) t.circle(300, 30) t.seth(0) t.fd(230) t.seth t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle( -20, 90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20 () t.seth(90) t.fd(-75) t.seth(0) t.fd(-180) t.pd() t.seth(-90) t.fd(40) 240, 128, 128)) t.pu() t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth
(135) turtle.fd(20) turtle.seth(225) turtle.fd(20) turtle.seth(315) turtle.fd(20) turtle.seth(45) turtle.fd (30) turtle.seth(-45) turtle.fd(30) turtle.seth(225) turtle.fd(30) turtle.end_fill() turtle.seth(90) (0) turtle.fd(15) turtle.seth(-90) turtle.fd(10) turtle.seth(180) turtle.fd(15) turtle.seth(90) turtle.fd t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle( -20, 90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20
) fd(10) seth(i) fd(3) #头部到这里就画好外观了 seth(-40) fd(52) seth(-135) fd(45) pu() seth(-105 ): seth(i) fd(2) seth(38) fd(25) seth(135) fd(31) seth(169) fd(6) seth(270) fd(105) #右边的身子画好了 #开始画左边的身子 pu() goto(-52,-30) pendown() seth(220) fd(48)#52 seth(250) fd(3) seth(270) fd(3) seth(290) ) fd(22) seth(90) fd(2) seth(60) fd(2) seth(45) fd(29) seth(0) fd(3) seth(-93) fd(102) #叉腰动作结束 接下来画嘴巴 (135) pendown() fd(25) seth(225) fd(45) seth(25) fd(15) seth(-80) pensize(2) fd(15) seth(55) fd(15) seth
() t.seth(90) t.fd(15) t.seth(0) t.fd(-100) t.pd() t.seth(-80) t.circle(30,40) t.circle(40,80) #身体 t.color("red",(255,99,71)) t.pu() t.seth(90) t.fd(-20) t.seth(0) t.fd(-78) t.pd() t.begin_fill() t.seth #手 t.color((255,155,192)) t.pu() t.seth(90) t.fd(-40) t.seth(0) t.fd(-27) t.pd() t.seth(-160) t.circle (300,15) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90) t.pu() t.seth (90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20) t.circle(-300,15) t.pu() t.seth(90) t.fd(20) t.seth
t.fd(41) t.seth(0) t.fd(0) t.pd() t.begin_fill() t.seth(180) t.circle(300 t.fd(-12) t.seth(0) t.fd(30) t.pd() t.begin_fill() t.seth(100) t.circle(-50, () t.color("black") t.pu() t.seth(90) t.fd(12) t.seth(0) t.fd(-3) t.pd() t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle( -20, 90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20
) seth(-13) fd(60) # 嘴巴 def mouth(): my_goto(5, 148) seth(270) fd(100) seth(0) circle (90) eyes() seth(180) penup() fd(60) pendown() seth(90) eyes() penup() seth fillcolor('#00a0de') begin_fill() seth(230) fd(80) seth(90) circle(1000, 1) seth (-89) circle(-1000, 10) # print(pos()) seth(180) fd(70) seth(90) circle(30, 180) seth (180) fd(70) # print(pos()) seth(100) circle(-1000, 9) seth(-86) circle(1000, 2) seth
(165) fd(60) my_goto(-32, 125) seth(180) fd(60) my_goto(-32, 115) seth(193 ) fd(60) my_goto(37, 135) seth(15) fd(60) my_goto(37, 125) seth(0) fd (60) my_goto(37, 115) seth(-13) fd(60) # 嘴巴 def mouth(): my_goto(5, 148) seth (1000, 1) seth(-89) circle(-1000, 10) # print(pos()) seth(180) fd(70) seth ) seth(0) fd(70) seth(-90) circle(-70, 180) seth(0) fd(70) #铃铛 my_goto
, 1) seth(-89) circle(-1000, 10) # print(pos()) seth(180) fd(70) seth(90) seth(40) circle(150, 10) seth(30) fd(40) end_fill() # 左手 seth(70) fillcolor seth(0) fd(70) seth(-90) circle(-70, 180) seth(0) fd(70) # 铃铛 my_goto t.fd(10) t.seth(280) t.fd(7) t.seth(210) t.fd(10) t.seth(300) , 80) t.seth(240) t.fd(12) t.seth(0) t.fd(13) t.seth(240)
(30) t.end_fill() #嘴 t.color(239,69,19) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(-100) t.pd() t.seth 0) t.fd(-27) t.pd() t.seth(-160) t.circle(300,15) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20) t.circle (10) t.color((240,128,128)) t.pu() t.seth(90) t.fd(-75) t.seth(0) t.fd(-180) t.pd() t.seth(-90) t.fd( t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth(-90) t.fd(40) t.seth(-180) t.color("black") t.pensize
(30) t.end_fill() #嘴 t.color(239,69,19) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(-100) t.pd() t.seth 0) t.fd(-27) t.pd() t.seth(-160) t.circle(300,15) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20) t.circle (10) t.color((240,128,128)) t.pu() t.seth(90) t.fd(-75) t.seth(0) t.fd(-180) t.pd() t.seth(-90) t.fd( t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth(-90) t.fd(40) t.seth(-180) t.color("black") t.pensize
(90) t.fd(-40) t.seth(0) t.fd(-27) t.pd() t.seth(-160) t.circle(300,15) t.pu() t.seth(90) t.fd(15) t.seth (0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd( ) t.seth(-20) t.circle(-300,15) t.pu() t.seth(90) t.fd(20) t.seth(0) t.fd(0) t.pd() t.seth(-170) t.circle 240,128,128)) t.pu() t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth(-90) t.fd(40) t.seth(-180) 1000, 1) seth(-89) circle(-1000, 10) # print(pos()) seth(180) fd(70) seth(90)
(90) 33 t.fd(25) 34 t.seth(0) 35 t.fd(10) 36 t.pd() 37 t.pencolor(255, 155, 192) 38 t.seth(10) (90) 59 t.fd(41) 60 t.seth(0) 61 t.fd(0) 62 t.pd() 63 t.begin_fill() 64 t.seth(180) 65 t.circle ) 105 t.fd(-12) 106 t.seth(0) 107 t.fd(30) 108 t.pd() 109 t.begin_fill() 110 t.seth(100) 111 t.circle ((255,155,192)) 210 t.pu() 211 t.seth(90) 212 t.fd(-40) 213 t.seth(0) 214 t.fd(-27) 215 t.pd() 216 t.seth () 224 t.seth(-10) 225 t.circle(-20,90) 226 227 t.pu() 228 t.seth(90) 229 t.fd(30) 230 t.seth(0) 231
树 圣诞树主要代码实现如下: # 画第一层 seth(-120) for i in range(10): fd(12) right(2) penup() goto(0, 150) seth , 35) seth(-60) pendown() for i in range(10): fd(8) left(5) seth(-120) penup() fd(10) seth(-145 (-120) fd(20) seth(150) fd(5) circle(7, 180) fd(15) circle(5, 90) fd(30) seth(160) fd(18) end_fill() () pensize(2) circle(5) seth(10) fd(15) seth(120) fd(20) seth(240) fd(20) seth(180) fd(20) seth(-60) fd(20) seth(50) fd(20) seth(-40) fd(30) seth(-130) fd(5) seth(135) fd(30) seth(-60) fd(30) seth(-150)
# 眼珠 self.setxy(3,12) t.fillcolor('black') t.begin_fill() t.seth(85) t.fillcolor('white') t.begin_fill() t.seth(85) t.circle(3) t.seth(85) t.seth(60) t.circle(-15,320) t.seth(330) t.circle(-80,180) t.seth(210 (270) t.forward(80) t.seth(0) t.forward(8) t.seth(90) (120) t.forward(30) t.seth(330) t.forward(30) t.seth(60) t.forward
(50) t.fd(25) t.seth(-50) t.fd(30) p_tail1=t.pos t.seth(-140) t.fd(36) t.end_fill() t.seth(39) # 右尾和h1 t.fd(72) # 右尾和v1 t.seth(125) t.fd(48) # 右尾和h2 t.seth(40) t.fd(53) # 右尾和v2 t.seth(88) t.fd(45) # 右尾和h3 t.seth(35) t.fd(105) # 右尾和v3 t.seth(105) t.circle(850, 8) #t.fd(105) t.seth(215) #t.fd(125) t.circle (-30, -180) t.seth(80) t.fd(10) t.seth(165) t.circle(10, 60) t.seth(90) t.fd(5) t.seth(165) t.circle( 10, 60) t.seth(95) t.fd(5) t.seth(185) t.circle(10, 60) t.seth(105) t.fd(10) t.seth(230) t.fd(20) t.seth
(30) t.end_fill() #嘴 t.color(239,69,19) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(-100) t.pd() t.seth 0) t.fd(-27) t.pd() t.seth(-160) t.circle(300,15) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20) t.circle (10) t.color((240,128,128)) t.pu() t.seth(90) t.fd(-75) t.seth(0) t.fd(-180) t.pd() t.seth(-90) t.fd( t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth(-90) t.fd(40) t.seth(-180) t.color("black") t.pensize
t.fd(10) t.seth(280) t.fd(7) t.seth(210) t.fd(10) t.seth(300) , 80) t.seth(240) t.fd(12) t.seth(0) t.fd(13) t.seth(240) t.circle(10, 70) t.seth(10) t.circle(10, 70) t.seth(10) t.circle(300, t.seth(180) t.circle(-100, 10) t.left(180) t.circle(100, 10) t.seth(5 t.seth(110) t.circle(100, 20) t.left(180) t.circle(-100, 20) t.seth