Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
6e978d27
Kaydet (Commit)
6e978d27
authored
Eki 02, 2014
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21971: Index and update turtledemo doc.
üst
cef3bdc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
turtle.rst
Doc/library/turtle.rst
+18
-13
No files found.
Doc/library/turtle.rst
Dosyayı görüntüle @
6e978d27
...
@@ -2274,10 +2274,13 @@ study it as an example and see its effects when running the demos (preferably
...
@@ -2274,10 +2274,13 @@ study it as an example and see its effects when running the demos (preferably
not from within the demo-viewer).
not from within the demo-viewer).
Demo scripts
:mod:`turtledemo` --- Demo scripts
============
==================================
.. module:: turtledemo
:synopsis: A viewer for example turtle scripts
The
re is a set of demo scripts in the :mod:`turtledemo` package
. These
The
:mod:`turtledemo` package includes a set of demo scripts
. These
scripts can be run and viewed using the supplied demo viewer as follows::
scripts can be run and viewed using the supplied demo viewer as follows::
python -m turtledemo
python -m turtledemo
...
@@ -2288,16 +2291,13 @@ Alternatively, you can run the demo scripts individually. For example, ::
...
@@ -2288,16 +2291,13 @@ Alternatively, you can run the demo scripts individually. For example, ::
The :mod:`turtledemo` package directory contains:
The :mod:`turtledemo` package directory contains:
- a set of 15 demo scripts demonstrating different features of the new module
- A demo viewer :file:`__main__.py` which can be used to view the sourcecode
:mod:`turtle`;
of the scripts and run them at the same time.
- a demo viewer :file:`__main__.py` which can be used to view the sourcecode
- Multiple scripts demonstrating different features of the :mod:`turtle`
of the scripts and run them at the same time. 14 of the examples can be
module. Examples can be accessed via the Examples menu. They can also
accessed via the Examples menu; all of them can also be run standalone.
be run standalone.
- The example :mod:`turtledemo.two_canvases` demonstrates the simultaneous
- A :file:`turtle.cfg` file which serves as an example of how to write
use of two canvases with the turtle module. Therefore it only can be run
and use such files.
standalone.
- There is a :file:`turtle.cfg` file in this directory, which serves as an
example for how to write and use such files.
The demo scripts are:
The demo scripts are:
...
@@ -2320,6 +2320,8 @@ The demo scripts are:
...
@@ -2320,6 +2320,8 @@ The demo scripts are:
+----------------+------------------------------+-----------------------+
+----------------+------------------------------+-----------------------+
| colormixer | experiment with r, g, b | :func:`ondrag` |
| colormixer | experiment with r, g, b | :func:`ondrag` |
+----------------+------------------------------+-----------------------+
+----------------+------------------------------+-----------------------+
| forest | 3 breadth-first trees | randomization |
+----------------+------------------------------+-----------------------+
| fractalcurves | Hilbert & Koch curves | recursion |
| fractalcurves | Hilbert & Koch curves | recursion |
+----------------+------------------------------+-----------------------+
+----------------+------------------------------+-----------------------+
| lindenmayer | ethnomathematics | L-System |
| lindenmayer | ethnomathematics | L-System |
...
@@ -2352,6 +2354,9 @@ The demo scripts are:
...
@@ -2352,6 +2354,9 @@ The demo scripts are:
| tree | a (graphical) breadth | :func:`clone` |
| tree | a (graphical) breadth | :func:`clone` |
| | first tree (using generators)| |
| | first tree (using generators)| |
+----------------+------------------------------+-----------------------+
+----------------+------------------------------+-----------------------+
| two_canvases | simple design | turtles on two |
| | | canvases |
+----------------+------------------------------+-----------------------+
| wikipedia | a pattern from the wikipedia | :func:`clone`, |
| wikipedia | a pattern from the wikipedia | :func:`clone`, |
| | article on turtle graphics | :func:`undo` |
| | article on turtle graphics | :func:`undo` |
+----------------+------------------------------+-----------------------+
+----------------+------------------------------+-----------------------+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment