1. import turtle
    2. # coding:utf-8
    3. import turtle as t
    4. t.pensize(4)
    5. t.hideturtle()
    6. t.colormode(255)
    7. t.color((255,155,192),"pink")
    8. t.setup(840,500)
    9. t.speed(10)
    10. #鼻子
    11. t.pu()
    12. t.goto(-100,100)
    13. t.pd()
    14. t.seth(-30)
    15. t.begin_fill()
    16. a=0.4
    17. for i in range(120):
    18. if 0<=i<30 or 60<=i<90:
    19. a=a+0.08
    20. t.lt(3) #向左转3度
    21. t.fd(a) #向前走a的步长
    22. else:
    23. a=a-0.08
    24. t.lt(3)
    25. t.fd(a)
    26. t.end_fill()
    27. t.pu()
    28. t.seth(90)
    29. t.fd(25)
    30. t.seth(0)
    31. t.fd(10)
    32. t.pd()
    33. t.pencolor(255,155,192)
    34. t.seth(10)
    35. t.begin_fill()
    36. t.circle(5)
    37. t.color(160,82,45)
    38. t.end_fill()
    39. t.pu()
    40. t.seth(0)
    41. t.fd(20)
    42. t.pd()
    43. t.pencolor(255,155,192)
    44. t.seth(10)
    45. t.begin_fill()
    46. t.circle(5)
    47. t.color(160,82,45)
    48. t.end_fill()
    49. #头
    50. t.color((255,155,192),"pink")
    51. t.pu()
    52. t.seth(90)
    53. t.fd(41)
    54. t.seth(0)
    55. t.fd(0)
    56. t.pd()
    57. t.begin_fill()
    58. t.seth(180)
    59. t.circle(300,-30)
    60. t.circle(100,-60)
    61. t.circle(80,-100)
    62. t.circle(150,-20)
    63. t.circle(60,-95)
    64. t.seth(161)
    65. t.circle(-300,15)
    66. t.pu()
    67. t.goto(-100,100)
    68. t.pd()
    69. t.seth(-30)
    70. a=0.4
    71. for i in range(60):
    72. if 0<=i<30 or 60<=i<90:
    73. a=a+0.08
    74. t.lt(3) #向左转3度
    75. t.fd(a) #向前走a的步长
    76. else:
    77. a=a-0.08
    78. t.lt(3)
    79. t.fd(a)
    80. t.end_fill()
    81. #耳朵
    82. t.color((255,155,192),"pink")
    83. t.pu()
    84. t.seth(90)
    85. t.fd(-7)
    86. t.seth(0)
    87. t.fd(70)
    88. t.pd()
    89. t.begin_fill()
    90. t.seth(100)
    91. t.circle(-50,50)
    92. t.circle(-10,120)
    93. t.circle(-50,54)
    94. t.end_fill()
    95. t.pu()
    96. t.seth(90)
    97. t.fd(-12)
    98. t.seth(0)
    99. t.fd(30)
    100. t.pd()
    101. t.begin_fill()
    102. t.seth(100)
    103. t.circle(-50,50)
    104. t.circle(-10,120)
    105. t.circle(-50,56)
    106. t.end_fill()
    107. #眼睛
    108. t.color((255,155,192),"white")
    109. t.pu()
    110. t.seth(90)
    111. t.fd(-20)
    112. t.seth(0)
    113. t.fd(-95)
    114. t.pd()
    115. t.begin_fill()
    116. t.circle(15)
    117. t.end_fill()
    118. t.color("black")
    119. t.pu()
    120. t.seth(90)
    121. t.fd(12)
    122. t.seth(0)
    123. t.fd(-3)
    124. t.pd()
    125. t.begin_fill()
    126. t.circle(3)
    127. t.end_fill()
    128. t.color((255,155,192),"white")
    129. t.pu()
    130. t.seth(90)
    131. t.fd(-25)
    132. t.seth(0)
    133. t.fd(40)
    134. t.pd()
    135. t.begin_fill()
    136. t.circle(15)
    137. t.end_fill()
    138. t.color("black")
    139. t.pu()
    140. t.seth(90)
    141. t.fd(12)
    142. t.seth(0)
    143. t.fd(-3)
    144. t.pd()
    145. t.begin_fill()
    146. t.circle(3)
    147. t.end_fill()
    148. #腮
    149. t.color((255,155,192))
    150. t.pu()
    151. t.seth(90)
    152. t.fd(-95)
    153. t.seth(0)
    154. t.fd(65)
    155. t.pd()
    156. t.begin_fill()
    157. t.circle(30)
    158. t.end_fill()
    159. #嘴
    160. t.color(239,69,19)
    161. t.pu()
    162. t.seth(90)
    163. t.fd(15)
    164. t.seth(0)
    165. t.fd(-100)
    166. t.pd()
    167. t.seth(-80)
    168. t.circle(30,40)
    169. t.circle(40,80)
    170. #身体
    171. t.color("red",(255,99,71))
    172. t.pu()
    173. t.seth(90)
    174. t.fd(-20)
    175. t.seth(0)
    176. t.fd(-78)
    177. t.pd()
    178. t.begin_fill()
    179. t.seth(-130)
    180. t.circle(100,10)
    181. t.circle(300,30)
    182. t.seth(0)
    183. t.fd(230)
    184. t.seth(90)
    185. t.circle(300,30)
    186. t.circle(100,3)
    187. t.color((255,155,192),(255,100,100))
    188. t.seth(-135)
    189. t.circle(-80,63)
    190. t.circle(-150,24)
    191. t.end_fill()
    192. #手
    193. t.color((255,155,192))
    194. t.pu()
    195. t.seth(90)
    196. t.fd(-40)
    197. t.seth(0)
    198. t.fd(-27)
    199. t.pd()
    200. t.seth(-160)
    201. t.circle(300,15)
    202. t.pu()
    203. t.seth(90)
    204. t.fd(15)
    205. t.seth(0)
    206. t.fd(0)
    207. t.pd()
    208. t.seth(-10)
    209. t.circle(-20,90)
    210. t.pu()
    211. t.seth(90)
    212. t.fd(30)
    213. t.seth(0)
    214. t.fd(237)
    215. t.pd()
    216. t.seth(-20)
    217. t.circle(-300,15)
    218. t.pu()
    219. t.seth(90)
    220. t.fd(20)
    221. t.seth(0)
    222. t.fd(0)
    223. t.pd()
    224. t.seth(-170)
    225. t.circle(20,90)
    226. #脚
    227. t.pensize(10)
    228. t.color((240,128,128))
    229. t.pu()
    230. t.seth(90)
    231. t.fd(-75)
    232. t.seth(0)
    233. t.fd(-180)
    234. t.pd()
    235. t.seth(-90)
    236. t.fd(40)
    237. t.seth(-180)
    238. t.color("black")
    239. t.pensize(15)
    240. t.fd(20)
    241. t.pensize(10)
    242. t.color((240,128,128))
    243. t.pu()
    244. t.seth(90)
    245. t.fd(40)
    246. t.seth(0)
    247. t.fd(90)
    248. t.pd()
    249. t.seth(-90)
    250. t.fd(40)
    251. t.seth(-180)
    252. t.color("black")
    253. t.pensize(15)
    254. t.fd(20)
    255. #尾巴
    256. t.pensize(4)
    257. t.color((255,155,192))
    258. t.pu()
    259. t.seth(90)
    260. t.fd(70)
    261. t.seth(0)
    262. t.fd(95)
    263. t.pd()
    264. t.seth(0)
    265. t.circle(70,20)
    266. t.circle(10,330)
    267. t.circle(70,30)
    268. t.done()