معرفی شرکت ها


LindenmayerSystem-1.0.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A pure python module for generating iterations from the L-System or Lindenmayer system.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل LindenmayerSystem-1.0.0
نام LindenmayerSystem
نسخه کتابخانه 1.0.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Subimal Deb
ایمیل نویسنده subimal.deb@gmail.com
آدرس صفحه اصلی https://github.com/subimal/LSystem
آدرس اینترنتی https://pypi.org/project/LindenmayerSystem/
مجوز -
# LSystem ## What is LSystem? A pure python module for generating iterations from the L-System or Lindenmayer system. Please check the [Wikipedia page on L-system][https://en.wikipedia.org/wiki/L-system] for details. The module gives you the `LSystem` class with the same structure as listed out on Wikipedia page (see the paragraph above). It gives you the following attributes: * **variables** : A set of symbols that can be replaced * **constants** : A set of symbols that won't be replaced * **axiom** : The initial state of the system. * **rules** : The rules for replacing variables with a combination of constants and variables. * **system** : A list of iterations that have been formed. The first member is, naturally, the axiom. The list can be expanded using the `iterate()` function member. ### A quick tutorial ```python >>> from LindenmayerSystem import LSystem # Import the LSystem class from the LSystem module >>> ################################################ >>> # Algae will be an instance of LSystem >>> # with >>> # variables being the list ['A', 'B'] >>> # no constants >>> # axiom 'A' >>> # rules A -> AB and B -> A >>> ################################################ >>> Algae = LSystem(variables = "A B".split(), constants =[], axiom="A", rules={"A": "AB", "B":"A"}) >>> Algae ['A'] >>> Algae.variables ['A', 'B'] >>> Algae.constants [] >>> Algae.rules {'A': 'AB', 'B': 'A'} >>> Algae.axiom 'A' >>> Algae ['A'] >>> Algae.iterate() >>> Algae ['A', 'AB'] >>> Algae.iterate() >>> Algae ['A', 'AB', 'ABA'] >>> Algae.system ['A', 'AB', 'ABA'] ``` ## Invitation ### to review The code has been checked for the examples in Wikipedia. You are invited to cross check the results. Please raise an issue in case of a discrepancy. ### to contribute You are welcome to improve LSystem and suggest improvements.


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl LindenmayerSystem-1.0.0:

    pip install LindenmayerSystem-1.0.0.whl


نصب پکیج tar.gz LindenmayerSystem-1.0.0:

    pip install LindenmayerSystem-1.0.0.tar.gz