%PDF- %PDF-
Direktori : /usr/local/lib/python3.8/turtledemo/__pycache__/ |
Current File : //usr/local/lib/python3.8/turtledemo/__pycache__/rosette.cpython-38.pyc |
U q©ßaQ ã @ sX d Z ddlmZmZmZ ddlmZmZ dd„ Z dd„ Z edkrTe ƒ 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)Úperf_counterÚsleepc C s˜ | g}t d|ƒD ](}| ¡ }| d| ¡ | |¡ |} qt |ƒD ]P}t|d | ƒ|d }|D ].}| d| ¡ | d| d|¡ | |¡ qbqBd S )Né g €v@g @gffffffæ?r )ÚrangeZcloneZrtÚappendÚabsÚpencolorÚfd)ÚpÚneZszZ turtlelistÚiÚqÚcÚt© r ú./usr/local/lib/python3.8/turtledemo/rosette.pyÚmn_eck s r c C sº t ƒ } | d¡ tƒ }| d¡ | ¡ | d¡ | d¡ | dd¡ tƒ }t |ddƒ tƒ }|| }t dƒ tƒ }tdd „ | ¡ D ƒƒr¤| ¡ D ]}| ¡ q”qvtƒ }d || | S )NZblackr Zredé é$ é r c s s | ]}| ¡ V qd S )N)Zundobufferentries)Ú.0r r r r Ú <genexpr>7 s zmain.<locals>.<genexpr>zruntime: %.3f sec)r Zbgcolorr ZspeedZ hideturtler ZpensizeZtracerÚclockr r ÚanyZturtlesZundo)Úsr ZatÚetZz1r r r r Úmain$ s&