403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.217.103
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/turtledemo/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/turtledemo/__pycache__/tree.cpython-36.pyc
3

x2_u�@sXdZddlmZmZddlmZdd�Zdd�Zdd	�Ze	d
krTe�Z
ee
�e�dS)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.
�)�Turtle�mainloop)�clockccsz|dkrvg}xF|D]>}|j|�|j�}|j|�|j|�|j|�|j|�qWx t|||||�D]
}dVqhWdS)z� plist 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)�forwardZclone�left�right�append�tree)Zplist�l�a�fZlst�p�q�x�r�4/opt/alt/python36/lib64/python3.6/turtledemo/tree.pyr
s




r
cCsxt�}|jd�|j�|jd�|j�jdd�|jd�|j�|jd�|j	�t
|gddd�}x|D]}qlWdS)	Nr��Z�����Agffffff�?i.���)rZ
setundobufferZ
hideturtleZspeedZ	getscreenZtracerrZpenuprZpendownr
)r�trrrr�maketree's




rcCst�}t�t�}d||S)Nzdone: %.2f sec.)rr)r�brrr�main5sr�__main__N)�__doc__ZturtlerrZtimerr
rr�__name__�msg�printrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit