/opt/imh/python3.13/lib/python3.13/turtledemo/__pycache__
Edit: /opt/imh/python3.13/lib/python3.13/turtledemo/__pycache__/tree.cpython-313.pyc (2527B)
ey p S r SSKJrJr SSKJr S rS rS r \
S:X a \ " 5 r\" \5 \" 5 gg) a turtle-example-suite:
tdemo_tree.py
Displays a 'breadth-first-tree' - in contrast
to the classical Logo tree drawing programs,
which use a depth-first-algorithm.
Uses:
(1) a tree-generator, where the drawing is
quasi the side-effect, whereas the generator
always yields None.
(2) Turtle-cloning: At each branching point
the current pen is cloned. So in the end
there are 1024 turtles.
)Turtlemainloop)perf_counterc # . # US: a / nU Hh nUR U5 UR 5 nUR U5 UR U5 UR U5 UR U5 Mj [ XAU- X#5 H nSv M gg7f)zplist is list of pens
l is length of branch
a is half of the angle between 2 branches
f is factor by which branch is shortened
from level to level. N)forwardcloneleftrightappendtree)plistlaflstpqxs 5/opt/imh/python3.13/lib/python3.13/turtledemo/tree.pyr
r
s 1uA
IIaL A
FF1I
GGAJJJqMJJqM
cQ3%AJ &
s BBc p [ 5 n U R S 5 U R 5 U R S5 U R 5 R SS5 U R
S5 U R 5 U R S5 U R 5 [ U /SSS5 nU H nM g )Nr Z i. A gffffff?)r
setundobuffer
hideturtlespeed getscreentracerr
penupr pendownr
)r tr s r maketreer$ ' s AOODLLNGGAJKKMAFF2JGGIIIdOIIKaS#r6"A
c L [ 5 n [ 5 [ 5 nSX-
- $ )Nzdone: %.2f sec.)clockr$ )r bs r mainr) 5 s" gAJgA$$r% __main__N)
__doc__turtler r timer r' r
r$ r) __name__msgprint r% r
r2 sC $ &$
% z
&C #JJ r%