2024-07-13 09:18:35 +08:00
|
|
|
import turtle
|
|
|
|
t=turtle.Turtle()
|
|
|
|
|
|
|
|
t.speed(20)
|
|
|
|
t.pensize(3)
|
|
|
|
|
|
|
|
t.color("blue","blue")
|
|
|
|
t.goto(0,0)
|
|
|
|
t.circle(150)
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(150)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
|
|
|
|
t.color("white","white")
|
|
|
|
t.circle(120)
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(120)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
|
|
|
|
t.color('black','white')
|
|
|
|
t.penup()
|
|
|
|
t.goto(-40,200)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(34)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
|
|
|
|
t.color('black','white')
|
|
|
|
t.penup()
|
|
|
|
t.goto(40,200)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(34)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
|
|
|
|
t.color("red","red")
|
|
|
|
t.penup()
|
|
|
|
t.goto(4,140)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(20)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
|
|
|
|
t.color('black')
|
|
|
|
t.penup()
|
|
|
|
t.goto(26,220)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(14)
|
|
|
|
t.fillcolor('black')
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
|
|
|
|
t.color('black')
|
|
|
|
t.penup()
|
|
|
|
t.goto(-30,220)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(14)
|
|
|
|
t.fillcolor('black')
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
|
|
|
|
t.color('white')
|
|
|
|
t.penup()
|
|
|
|
t.goto(26,235)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(3)
|
|
|
|
t.fillcolor('white')
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
|
|
|
|
t.color('white')
|
|
|
|
t.penup()
|
|
|
|
t.goto(-30,235)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(3)
|
|
|
|
t.fillcolor('white')
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
t.color('black')
|
|
|
|
t.penup()
|
2024-07-13 15:15:02 +08:00
|
|
|
t.goto(-90,70)
|
2024-07-13 09:18:35 +08:00
|
|
|
t.pendown()
|
2024-07-13 15:15:02 +08:00
|
|
|
t.setheading(-50)
|
|
|
|
t.circle(120,110)
|
2024-07-13 09:18:35 +08:00
|
|
|
|
2024-07-13 15:15:02 +08:00
|
|
|
t.color('black')
|
|
|
|
t.penup()
|
|
|
|
t.goto(4,30)
|
|
|
|
t.pendown()
|
|
|
|
t.goto(4,140)
|
2024-07-13 09:18:35 +08:00
|
|
|
|
|
|
|
t.penup()
|
|
|
|
t.goto(23,120)
|
|
|
|
t.right(25)
|
|
|
|
t.pendown()
|
2024-07-13 15:15:02 +08:00
|
|
|
t.forward(120)
|
2024-07-13 09:18:35 +08:00
|
|
|
t.penup()
|
|
|
|
t.goto(23,115)
|
|
|
|
t.right(25)
|
|
|
|
t.pendown()
|
2024-07-13 15:15:02 +08:00
|
|
|
t.forward(120)
|
2024-07-13 09:18:35 +08:00
|
|
|
t.penup()
|
|
|
|
t.goto(23,110)
|
|
|
|
t.right(25)
|
|
|
|
t.pendown()
|
2024-07-13 15:15:02 +08:00
|
|
|
t.forward(120)
|
|
|
|
|
|
|
|
#t.setheading(180)
|
|
|
|
|
|
|
|
t.penup()
|
|
|
|
t.goto(-23,120)
|
|
|
|
t.right(15)
|
|
|
|
t.pendown()
|
|
|
|
t.forward(-120)
|
|
|
|
t.penup()
|
|
|
|
t.goto(-23,115)
|
|
|
|
t.right(-25)
|
|
|
|
t.pendown()
|
|
|
|
t.forward(-120)
|
|
|
|
t.penup()
|
|
|
|
t.goto(-23,110)
|
|
|
|
t.right(-25)
|
|
|
|
t.pendown()
|
|
|
|
t.forward(-120)
|
|
|
|
|
|
|
|
|
|
|
|
t.color('blue','blue')
|
|
|
|
t.penup()
|
|
|
|
t.goto(-125,0)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
# t.fillcolor('blue')
|
|
|
|
t.right(20)
|
|
|
|
t.goto(-125,-250)
|
|
|
|
t.left(90)
|
|
|
|
t.goto(125,-250)
|
|
|
|
t.left(90)
|
|
|
|
t.goto(125,0)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
t.penup()
|
|
|
|
t.goto(0,-10)
|
|
|
|
t.pendown()
|
|
|
|
t.color("white","white")
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(100)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
t.color('red','red')
|
|
|
|
t.penup()
|
|
|
|
t.goto(-140,10)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.fillcolor('red')
|
|
|
|
t.right(120)
|
|
|
|
t.goto(-140,-10)
|
|
|
|
t.left(90)
|
|
|
|
t.goto(140,-10)
|
|
|
|
t.left(90)
|
|
|
|
t.goto(140,10)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
t.color("black","yellow")
|
|
|
|
t.penup()
|
|
|
|
t.goto(-10,0)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(20)
|
|
|
|
t.end_fill()
|
|
|
|
t.begin_fill()
|
|
|
|
t.fillcolor("yellow")
|
|
|
|
|
|
|
|
t.color('white')
|
|
|
|
t.penup()
|
|
|
|
t.goto(-0,0)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(5)
|
|
|
|
t.fillcolor('white')
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
t.color('black','white')
|
|
|
|
t.penup()
|
|
|
|
t.goto(-28,-220)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.setheading(90)
|
|
|
|
# t.fillcolor('white')
|
|
|
|
t.circle(40)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
|
|
|
|
t.color('black','white')
|
|
|
|
t.penup()
|
|
|
|
t.goto(110,-220)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
# t.fillcolor('white')
|
|
|
|
t.circle(40)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
|
|
|
|
t.color('blue','blue')
|
|
|
|
t.penup()
|
|
|
|
t.goto(-110,-10)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.goto(-180,-100)
|
|
|
|
t.right(90)
|
|
|
|
t.goto(-140,-120)
|
|
|
|
t.right(90)
|
|
|
|
t.goto(-110,-60)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
t.color('blue','blue')
|
|
|
|
t.penup()
|
|
|
|
t.goto(110,-10)
|
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.goto(180,-100)
|
|
|
|
t.right(90)
|
|
|
|
t.goto(140,-120)
|
|
|
|
t.right(90)
|
|
|
|
t.goto(110,-60)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
t.color('black','white')
|
|
|
|
t.penup()
|
2024-07-13 15:59:13 +08:00
|
|
|
t.goto(-140,-140)
|
2024-07-13 15:15:02 +08:00
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.setheading(90)
|
|
|
|
t.circle(30)
|
|
|
|
t.end_fill()
|
|
|
|
|
|
|
|
t.color('black','white')
|
|
|
|
t.penup()
|
2024-07-13 15:59:13 +08:00
|
|
|
t.goto(200,-140)
|
2024-07-13 15:15:02 +08:00
|
|
|
t.pendown()
|
|
|
|
t.begin_fill()
|
|
|
|
t.circle(30)
|
|
|
|
t.end_fill()
|
2024-07-13 09:18:35 +08:00
|
|
|
|
2024-07-13 15:59:13 +08:00
|
|
|
t.penup()
|
|
|
|
t.goto(-50,-100)
|
|
|
|
t.pendown()
|
|
|
|
t.setheading(-90)
|
|
|
|
t.circle(50,180)
|
|
|
|
t.goto(-50,-100)
|
|
|
|
|
2024-07-13 09:18:35 +08:00
|
|
|
t.hideturtle()
|
|
|
|
turtle.done()
|