四个图任意一个代码是什么,不会打,刚开始学,啥也不会。:*(×;%@…?!。:)
import turtle
POS =(((177, 146),(187, 159), (290, 211),(372, 126),(142,177,212)),
((206, 169),(222, 191), (290, 211),(193,229,229)),
((303, 201),(406, 202), (343,157),(138,190,240)),
((323,129),(364,124),(360, 80), (146,189,235)),
((343,157),(387,188),(436,176),(458,143),(370, 125), (115,156,198)),
((436,176),(470,165),(455,151),(195,244,244)),
((470,165),(455,151),(500,116),(100,135,179)))
def draw_(t,spos, *pos):
t.pu()
t.color((0, 0, 0), pos[-1])
t.begin_fill()
for i in pos[:-1]:
t.setpos(i[0] + spos[0], -(i[1] + spos[1]))
t.pd()
t.setpos(pos[0][0]+ spos[0], -(pos[0][1]+ spos[1]))
t.end_fill()
t.pu()
t = turtle.Turtle()
turtle.colormode(255)
t.pu()
x, y = -200, -200
t.setpos(x, y)
t.pensize(3)
for i in POS:
draw_(t,(x, y), *i)
t.up()
t.setpos(x + 234, -(y + 175))
t.pd()
t.fillcolor((255, 255, 255))
t.begin_fill()
t.circle(12)
t.end_fill()
t.seth(90)
t.up()
t.fd(2)
t.fillcolor((0, 0, 0))
t.begin_fill()
t.seth(0)
t.circle(10)
t.end_fill()
turtle.done()