U e5dQã@sXdZddlmZmZmZddlmZmZdd„Z dd„Z e dkrTe ƒZ e 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ÚsleepcCs˜|g}td|ƒD](}| ¡}| d|¡| |¡|}qt|ƒD]P}t|d|ƒ|d}|D].}| d|¡| d|d|¡| |¡qbqBdS)Nég€v@g@gffffffæ?r)ÚrangeZcloneZrtÚappendÚabsÚpencolorÚfd)ÚpÚneZszZ turtlelistÚiÚqÚcÚt©rú*/usr/lib64/python3.8/turtledemo/rosette.pyÚmn_ecks  rcCsºtƒ}| d¡tƒ}| d¡| ¡| d¡| d¡| dd¡tƒ}t |ddƒtƒ}||}t dƒtƒ}t dd „|  ¡Dƒƒr¤|  ¡D] }|  ¡q”qvtƒ}d |||S) NZblackrZredéé$ércss|]}| ¡VqdS)N)Zundobufferentries)Ú.0rrrrÚ 7szmain..zruntime: %.3f sec)rZbgcolorrZspeedZ hideturtler ZpensizeZtracerÚclockrrÚanyZturtlesZundo)Úsr ZatZetZz1rrrrÚmain$s&        rÚ__main__N)Ú__doc__ZturtlerrrÚtimerrrrrÚ__name__ÚmsgÚprintrrrrÚs