import turtle
t=turtle.Turtle()
t.speed(0)
t.color(“red”)
t.penup()
t.goto(-80,-100)
t.pendown()
t.begin_fill()
t.fd(300)
t.lt(90)
t.fd(150)
t.lt(90)
t.fd(300)
t.lt(90)
t.fd(150)
t.lt(90)
t.end_fill()
#第1颗星星
t.penup()
t.goto(-60,-20)
t.pendown()
t.color(“yellow”)
t.begin_fill()
for x in range(5):
t.fd(50)
t.lt(144)
t.end_fill()
#第2颗星星
t.penup()
t.goto(-10,20)
t.pendown()
t.color(“yellow”)
t.begin_fill()
for x in range(5):
t.fd(20)
t.lt(144)
t.end_fill()
#第3颗星星
t.penup()
t.goto(10,-5)
t.pendown()
t.color(“yellow”)
t.begin_fill()
for x in range(5):
t.fd(20)
t.lt(144)
t.end_fill()
#第四颗星星
t.penup()
t.goto(10,-30)
t.pendown()
t.color(“yellow”)
t.begin_fill()
for x in range(5):
t.fd(20)
t.lt(144)
t.end_fill()
#第五颗星星
t.penup()
t.goto(-10,-50)
t.pendown()
t.color(“yellow”)
t.begin_fill()
for x in range(5):
t.fd(20)
t.lt(144)
t.end_fill()