korsygfhrtzangaiide
Elepffwdsff
/
usr
/
lib64
/
python2.7
/
Demo
/
turtle
/
Upload FileeE
HOME
� V �Qc @ sr d Z d d l m Z m Z m Z d d l m Z m Z d � Z d � Z e d k rn e � Z e GHe � n d S( sF 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(). i����( t Screent Turtlet mainloop( t clockt sleepc C s� | g } xG t d | � D]6 } | j � } | j d | � | j | � | } q Wxv t | � D]h } t | d | � | d } xC | D]; } | j d | � | j d | d | � | j | � q� Wq` Wd S( Ni g �v@g @gffffff�?i ( t ranget clonet rtt appendt abst pencolort fd( t pt net szt turtlelistt it qt ct t( ( s3 /usr/lib64/python2.7/Demo/turtle/tdemo_wikipedia.pyt mn_eck s c C s t � } | j d � t � } | j d � | j � | j d � | j d � | j d d � t � } t | d d � t � } | | } t d � t � } xP t g | j � D] } | j � ^ q� � r� x | j � D] } | j � q� Wq� Wt � } d | | | S( Nt blacki t redi i$ i i s Laufzeit: %.3f sec( R t bgcolorR t speedt hideturtleR t pensizet tracerR R R t anyt turtlest undobufferentriest undo( t sR t att ett z1R ( ( s3 /usr/lib64/python2.7/Demo/turtle/tdemo_wikipedia.pyt main$ s&