Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.222.112.252
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : rosette.cpython-310.pyc
o

_bQ�@s\dZddlmZmZmZddlmZmZdd�Z	dd�Z
edkr,e
�Ze
e�e�d	Sd	S)
aF      turtle-example-suite:

          tdemo_wikipedia3.py

This example is
inspired by the Wikipedia article on turtle
graphics. (See example wikipedia1 for URLs)

First we create (ne-1) (i.e. 35 in this
example) copies of our first turtle p.
Then we let them perform their steps in
parallel.

Followed by a complete undo().
�)�Screen�Turtle�mainloop)�perf_counter�sleepcCs�|g}td|�D]}|��}|�d|�|�|�|}qt|�D](}t|d|�|d}|D]}|�d|�|�d|d|�|�|�q1q!dS)N�g�v@g@gffffff�?r)�rangeZcloneZrt�append�abs�pencolor�fd)�p�neZszZ
turtlelist�i�q�c�t�r�;/usr/local/python-3.10/lib/python3.10/turtledemo/rosette.py�mn_ecks
��rcCs�t�}|�d�t�}|�d�|��|�d�|�d�|�dd�t�}t	|dd�t�}||}t
d�t�}tdd	�|��D��r\|��D]}|�
�qJtdd	�|��D��sFt�}d
|||S)NZblackrZred��$�rcss�|]}|��VqdS)N)Zundobufferentries)�.0rrrr�	<genexpr>7s�zmain.<locals>.<genexpr>zruntime: %.3f sec)rZbgcolorrZspeedZ
hideturtlerZpensizeZtracer�clockrr�anyZturtlesZundo)�sr
Zat�etZz1rrrr�main$s(




�r�__main__N)�__doc__Zturtlerrr�timerrrrr�__name__�msg�printrrrr�<module>s
�
© 2025 GrazzMean