Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib64
/
python3.12
/
turtledemo
/
__pycache__
/
Filename :
round_dance.cpython-312.opt-1.pyc
back
Copy
� �?h � �R � d Z ddl� d� Zd� Zedk( r e e� � e� yy)aF turtle-example-suite: tdemo_round_dance.py (Needs version 1.1 of the turtle module that comes with Python 3.1) Dancing turtles have a compound shape consisting of a series of triangles of decreasing size. Turtles march along a circle while rotating pairwise in opposite direction, with one exception. Does that breaking of symmetry enhance the attractiveness of the example? Press any key to stop the animation. Technically: demonstrates use of compound shapes, transformation of shapes as well as cloning turtles. The animation is controlled through update(). � )�*c � � da y )NF)�running� � �//usr/lib64/python3.12/turtledemo/round_dance.py�stopr s � ��Gr c � � t � t d� t d� t d� d} d}d}d}t d� }t d � D ]F }t |� t � }|| z }|| z }t | � |j ||d d|z fd� �H t d|� t d� t d� t � t d d� g }t d� D ]O }t d� t d� t d� t � |dz d k( s�7|j! t# � � �Q t% � dat) t* � t- � d}t&