Phi
Aus AkiWiki
(Unterschied zwischen Versionen)
Wiki (Diskussion | Beiträge)
(>>> import turtle >>> help (turtle) Help on module turtle: NAME turtle MODULE REFERENCE https://docs.python.org/3.9/library/turtle)
Zum nächsten Versionsunterschied →
(>>> import turtle >>> help (turtle) Help on module turtle: NAME turtle MODULE REFERENCE https://docs.python.org/3.9/library/turtle)
Zum nächsten Versionsunterschied →
Version vom 15. Februar 2021, 20:10 Uhr
>>> import turtle >>> help (turtle) Help on module turtle:
NAME
turtle
MODULE REFERENCE
https://docs.python.org/3.9/library/turtle The following documentation is automatically generated from the Python source files. It may be incomplete, incorrect or include features that are considered implementation detail and may vary between Python implementations. When in doubt, consult the module reference at the location listed above.
DESCRIPTION
Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzig and Seymour Papert in 1966. Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the command turtle.forward(15), and it moves (on-screen!) 15 pixels in the direction it is facing, drawing a line as it moves. Give it the command turtle.right(25), and it rotates in-place 25 degrees clockwise. By combining together these and similar commands, intricate shapes and pictures can easily be drawn.