turtle — Turtle graphics — Python 3.16.0a0 documentation

docs.python.org

Tin mới

IDLE — Python editor and shell

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Graphical user interfaces with Tk

Requirements for optional modules

Turtle graphics is an implementation of the popular geometric drawing tools introduced in Logo, developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon in 1967.

Tk interface package

In a Python shell, import all the objects of the turtle module:

Automatically begin and end filling¶

Starting with Python 3.14, you can use the fill() context manager instead of begin_fill() and end_fill() to automatically begin and end fill. Here is an example: