Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/turtledemo/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/turtledemo/__pycache__/wikipedia.cpython-35.opt-1.pyc



��YfC�@szdZddlmZmZmZddlmZmZdd�Zdd�Z	e
dkrve	�Zee�e�d	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)�clock�sleepcCs�|g}xGtd|�D]6}|j�}|jd|�|j|�|}qWxvt|�D]h}t|d|�|d}xC|D];}|jd|�|jd|d|�|j|�q�Wq`WdS)N�g�v@g@gffffff�?r)�rangeZcloneZrt�append�abs�pencolor�fd)�p�neZszZ
turtlelist�i�q�c�t�r�9/opt/alt/python35/lib64/python3.5/turtledemo/wikipedia.py�mn_ecks	


rcCs�t�}|jd�t�}|jd�|j�|jd�|jd�|jdd�t�}t	|dd�t�}||}t
d�t�}xDtdd	�|j�D��r�x|j�D]}|j
�q�Wq�Wt�}d
|||S)NZblackrZred��$�rcSsg|]}|j��qSr)Zundobufferentries)�.0rrrr�
<listcomp>7s	zmain.<locals>.<listcomp>zruntime: %.3f sec)rZbgcolorrZspeedZ
hideturtlerZpensizeZtracerrrr�anyZturtlesZundo)�sr
ZatZetZz1rrrr�main$s&	
	



		

	"	r�__main__N)
�__doc__ZturtlerrrZtimerrrr�__name__�msg�printrrrr�<module>s