Server : LiteSpeed System : Linux premium163.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : infihsqw ( 644) PHP Version : 8.1.29 Disable Function : NONE Directory : /lib64/python3.8/turtledemo/__pycache__/ |
U e5d� � @ sD d Z ddlT dd� Zdd� Zdd� Zed kr@e� Zee� e� d S )a� turtle-example-suite: xtx_lindenmayer_indian.py Each morning women in Tamil Nadu, in southern India, place designs, created by using rice flour and known as kolam on the thresholds of their homes. These can be described by Lindenmayer systems, which can easily be implemented with turtle graphics and Python. Two examples are shown here: (1) the snake kolam (2) anklets of Krishna Taken from Marcia Ascher: Mathematics Elsewhere, An Exploration of Ideas Across Cultures � )�*c C s4 t |�D ]&}d}| D ]}||�||� }q|} q| S )N� )�range�get)�seqZreplacementRules�n�iZnewseqZelement� r �./usr/lib64/python3.8/turtledemo/lindenmayer.py�replace s r c C sR | D ]H}z|| � W q t k rJ zt|| |� W n Y nX Y qX qd S )N)� TypeError�draw)ZcommandsZrules�br r r r &