관리-도구
편집 파일: lindenmayer.cpython-38.pyc
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 &