
turtle --- 海龟绘图 — Python 3.13.2 文档
源码: Lib/turtle.py 概述: 海龟绘图是对 最早在 Logo 中引入的受欢迎的几何绘图工具 的实现,它由 Wally Feurzeig, Seymour Papert 和 Cynthia Solomon 在 1967 年开发。 入门: 请想象绘图区有一只机器海龟,起始位置在 x-y 平面的 (0, 0) 点。先执行 import turtle ,再执行 turtle.forwa...
24.5. turtle — Turtle graphics for Tk — Python 2.7.18 文档
再执行 turtle.right(25) ,它将原地右转 25 度。 通过组合使用此类命令,可以轻松地绘制出精美的形状和图案。 turtle 模块是基于 Python 标准发行版 2.5 以来的同名模块重新编写并进行了功能扩展。 新模块尽量保持了原模块的特点,并且(几乎)100%与其兼容。
Program Frameworks — Python 3.13.2 documentation
4 days ago · turtle — Turtle graphics. Introduction; Get started; Tutorial. Starting a turtle environment; Basic drawing. Pen control; The turtle’s position; Making algorithmic patterns; How to… Get started as quickly as possible; Use the turtle module namespace; Use turtle graphics in a script; Use object-oriented turtle graphics; Turtle graphics ...
Python Documentation contents — Python 3.13.2 documentation
turtle — Turtle graphics. Introduction; Get started; Tutorial. Starting a turtle environment; Basic drawing. Pen control; The turtle’s position; Making algorithmic patterns; How to… Get started as quickly as possible; Use the turtle module namespace; Use turtle graphics in a script; Use object-oriented turtle graphics; Turtle graphics ...
What’s New in Python 2.6 — Python 3.13.2 documentation
Better animation of turtle movement and rotation. Control over turtle movement using the new delay(), tracer(), and speed() methods. The ability to set new shapes for the turtle, and to define a new coordinate system. Turtles now have an undo() method that can roll back actions.
What’s New In Python 3.13 — Python 3.13.2 documentation
2 days ago · turtle¶ Remove the RawTurtle.settiltangle() method, deprecated in the documentation since Python 3.1 and at runtime since Python 3.11. (Contributed by Hugo van Kemenade in gh-104876 .)
IDLE — Python editor and shell — Python 3.12.9 documentation
1 day ago · Run the turtledemo module with example Python code and turtle drawings. Additional help sources may be added here with the Configure IDLE dialog under the General tab. See the Help sources subsection below for more on Help menu choices.
La bibliothèque standard — Documentation Python 3.13.2
La bibliothèque standard¶. Alors que La référence du langage Python décrit exactement la syntaxe et la sémantique du langage Python, ce manuel de référence de la Bibliothèque décrit la bibliothèque standard distribuée avec Python. Il décrit aussi certains composants optionnels typiquement inclus dans les distributions de Python. La bibliothèque standard de Python est …
3.12.9 Documentation - Python
3 days ago · What's new in Python 3.12? Or all "What's new" documents since Python 2.0. Tutorial Start here: a tour of Python's syntax and features. Library reference Standard library and builtins. Language reference Syntax and language elements. Python setup and usage How to install, configure, and use Python. Python HOWTOs In-depth topic manuals. Installing Python …
8. Compound statements — Python 3.14.0a6 documentation
3 days ago · if test1: if test2: print (x) Also note that the semicolon binds tighter than the colon in this context, so that in the following example, either all or none of the print() calls are executed: if x < y < z : print ( x ); print ( y ); print ( z )