Server IP : 184.154.167.98 / Your IP : 18.116.87.144 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib64/python2.7/Demo/turtle/ |
Upload File : |
� ��^c @ 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&