In the past two days, I saw an interesting turtle library in a public account. Let’s learn about it today.
turtle.circle(radius, extent=None, steps=None)
Description: Draw a circle with a given radius
Parameters:
radius( Radius); The radius is positive (negative), which means the center of the circle is to the left (right) of the brush to draw a circle
extent(radians) (optional);
steps (optional) (make the radius as radius The regular polygon inscribed in the circle, the number of sides of the polygon is steps)
radius > 0, draw the circle counterclockwise
radius
extent > 0, take the circle in the positive direction
extent
Achieve the effect
【Recommended Course: Python Video Tutorial】
The above is the detailed content of Use the turtle module in Python to draw two lambs. For more information, please follow other related articles on the PHP Chinese website!