I. Introduction
The turtle Python library is a fun and intuitive graphics rendering library. a graphics rendering library turtle basic frame: a crawling hatchlings in a coordinate system, which forms a crawler track pattern drawing.
Second, the simple graphical list
1. Draw four inscribed circle with different radii
Code:
import turtle
turtle.pensize(4)
turtle.circle(10)
turtle.circle(40)
turtle.circle(80)
turtle.circle(120)
turtle.done()
result:
2. Draw hexagonal, hexagonal using a turtle drawing library.
Code:
from turtle import*
while True:
forward(100)
right(-60)
forward(100)
right(120)
if abs(pos())<1:
break
turtle.done()
result:
3. Draw sunflowers, sunflowers draw a graph.
Code:
from turtle import*
color('red','yellow')
begin_fill()
while True:
forward(200)
left(170)
if abs(pos())<1:
break
end_fill()
done()
result: