Home >Backend Development >Python Tutorial >Use the turtle module in Python to draw two lambs

Use the turtle module in Python to draw two lambs

little bottle
little bottleforward
2019-04-08 17:03:503722browse

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

Use the turtle module in Python to draw two lambsAchieve 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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete