| Server IP : 198.54.126.161 / Your IP : 216.73.217.148 Web Server : LiteSpeed System : Linux premium12.web-hosting.com 4.18.0-553.94.1.lve.el8.x86_64 #1 SMP Thu Jan 22 12:37:22 UTC 2026 x86_64 User : amerfigf ( 898) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /lib64/python3.12/turtledemo/__pycache__/ |
Upload File : |
�
�֦i� � �� � d Z ddl� ddlZ G d� de� Z G d� de� Zd� Zd � Zd
� Z d� Z
d� Zdd
�Zd� Z
d� Zd� Zd� Zd� Zd� Zd� ZdZdZedk( r e� Z e� yy)a�
sorting_animation.py
A minimal sorting algorithm animation:
Sorts a shelf of 10 blocks using insertion
sort, selection sort and quicksort.
Shelves are implemented using builtin lists.
Blocks are turtles with shape "square", but
stretched to rectangles by shapesize()
---------------------------------------
To exit press space button
---------------------------------------
� )�*Nc �$ � e Zd Zd� Zd� Zd� Zd� Zy)�Blockc �� � || _ t j | dd�� | j � | j |dz dd� | j d� | j
� y )N�squareF)�shape�visibleg �?� �black)�size�Turtle�__init__�pu� shapesize� fillcolor�st)�selfr s �3/usr/lib64/python3.12/turtledemo/sorting_animate.pyr zBlock.__init__ sM � ��� �����H�e��<���� ����t�c�z�3��*����w����� � c �&