copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
Program frameworks — Python 3. 14. 0 documentation Program frameworks ¶ This chapter is no longer maintained, and the modules it contained have been moved to their respective topical documentation cmd — Command Line Interface Libraries shlex — Unix Specific Services turtle — Graphical User Interfaces with Tk
24. 5. turtle — Turtle graphics for Tk — Python 2. 7. 18 文档 The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support 面向对象的接口主要使用“2+2”个类:
Python Documentation contents — Python 3. 15. 0a2 documentation Starting a turtle environment Basic drawing Pen control The turtle’s position Making algorithmic patterns How to… Get started as quickly as possible Automatically begin and end filling Use the turtle module namespace Use turtle graphics in a script Use object-oriented turtle graphics Turtle graphics reference Turtle methods Methods of
The Python Standard Library — Python 3. 14. 0 documentation turtle — Turtle graphics Development Tools typing — Support for type hints pydoc — Documentation generator and online help system Python Development Mode doctest — Test interactive Python examples unittest — Unit testing framework unittest mock — mock object library unittest mock — getting started test — Regression tests package
cmd — Support for line-oriented command interpreters Esta sección presenta un ejemplo simple de cómo construir un shell alrededor de algunos de los comandos en el módulo turtle Basic turtle commands such as forward() are added to a Cmd subclass with method named do_forward() The argument is converted to a number and dispatched to the turtle module