Здесь находиться код программы рисования автомата в Python:
from turtle import*
color('black','brown')
begin_fill()
up()
goto(-300,0)
down()
forward(100)
right(90)
forward(50)
right(90)
goto(-300,-75)
right(90)
forward(75)
end_fill()
up()
goto(-200,-5)
down()
color('black','grey')
begin_fill()
right(90)
forward(70)
right(90)
forward(35)
right(90)
forward(70)
end_fill()
up()
goto(-130,-10)
down()
color('black','grey')
begin_fill()
right(180)
forward(180)
right(90)
forward(15)
right(90)
forward(180)
end_fill()
up()
goto(-197,-40)
down()
color('black','black')
begin_fill()
left(90)
forward(20)
left(90)
forward(25)
left(90)
forward(20)
end_fill()
right(180)
forward(20)
width(5)
goto(-150,-40)
up()
down()
width(1)
color('black','black')
begin_fill()
forward(45)
left(90)
forward(15)
left(90)
forward(45)
end_fill()
up()
goto(-50,-10)
down()
width(5)
forward(30)
up()
goto(-45,28)
down()
circle(5)
hideturtle()
from turtle import*
color('black','brown')
begin_fill()
up()
goto(-300,0)
down()
forward(100)
right(90)
forward(50)
right(90)
goto(-300,-75)
right(90)
forward(75)
end_fill()
up()
goto(-200,-5)
down()
color('black','grey')
begin_fill()
right(90)
forward(70)
right(90)
forward(35)
right(90)
forward(70)
end_fill()
up()
goto(-130,-10)
down()
color('black','grey')
begin_fill()
right(180)
forward(180)
right(90)
forward(15)
right(90)
forward(180)
end_fill()
up()
goto(-197,-40)
down()
color('black','black')
begin_fill()
left(90)
forward(20)
left(90)
forward(25)
left(90)
forward(20)
end_fill()
right(180)
forward(20)
width(5)
goto(-150,-40)
up()
down()
width(1)
color('black','black')
begin_fill()
forward(45)
left(90)
forward(15)
left(90)
forward(45)
end_fill()
up()
goto(-50,-10)
down()
width(5)
forward(30)
up()
goto(-45,28)
down()
circle(5)
hideturtle()
Результат:
