description
Use turtle library, the effect of drawing a wind turbine, wherein the rotor of each internal angle is 45 degrees, the rotor side length of 150 pixels.
Tip: turtle.goto (x, y) function, turtle pen can be moved to the coordinate (x, y)
Output Example
Shaped flaps results are as follows:
import turtle as t
t.pensize(2)
for i in range(4):
t.fd(150)
t.right(90)
t.circle(-150,45)
t.right(90)
t.fd(150)
t.left(135)
t.done()
#WindWheel.py
import turtle as t
t.pensize(2)
for i in range(4):
t.seth(90*i)
t.fd(150)
t.right(90)
t.circle(-150, 45)
t.goto(0,0)