{"id":317214,"date":"2021-01-30T15:00:24","date_gmt":"2021-01-30T15:00:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=317214"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=317214","title":{"rendered":"L-\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0447\u0442\u043e \u043e\u043d\u0438 \u0441\u0435\u0431\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u043d\u0451\u043c \u0441 \u0430\u0437\u043e\u0432, \u0435\u0441\u043b\u0438 \u0431\u0440\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0438\u0437 \u0432\u0441\u0435\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0438 \u0432\u0441\u0435\u043c\u0438 \u043b\u044e\u0431\u0438\u043c\u043e\u0439 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438, \u0442\u043e <strong>L-\u0441\u0438\u0441\u0442\u0435\u043c\u0430<\/strong> (\u0438\u043b\u0438 \u0436\u0435<strong> \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u041b\u0438\u043d\u0434\u0435\u043d\u043c\u0430\u0439\u0435\u0440\u0430<\/strong>) \u2014 \u044d\u0442\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u0438\u0434 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u043a\u0438.  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c, \u0442\u043e <strong> L-\u0441\u0438\u0441\u0442\u0435\u043c\u0430 <\/strong> \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a, \u043d\u0430\u0431\u043e\u0440\u0430 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u044e\u0449\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0434\u0430\u044e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 (<em> \u201c\u0430\u043a\u0441\u0438\u043e\u043c\u044b\u201d <\/em>), \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435, \u0438 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.  \u0421\u0430\u043c\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c<strong> L-\u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0434\u0435\u0440\u0435\u0432\u0430. <\/p>\n<p><strong><u>\u0412\u0432\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/u><\/strong> <\/p>\n<p><strong><em>\u0421\u0442\u0440\u043e\u043a\u0430 <\/em><\/strong>(<em>\u0434\u0430\u043b\u0435\u0435 \u0410\u043a\u0441\u0438\u043e\u043c\u0430<\/em>): A B <\/p>\n<p><strong><em>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/em><\/strong>(<em>\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 \u0434\u0435\u0440\u0435\u0432\u0430<\/em>):  A B C <\/p>\n<p><strong><em>\u041f\u0440\u0430\u0432\u0438\u043b\u043e<\/em><\/strong> (<em>\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043a\u0430\u0436\u0434\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f<\/em>): <\/p>\n<ul>\n<li>\n<p>A &#8212; &gt; AB<\/p>\n<\/li>\n<li>\n<p>B &#8212; &gt; AC<\/p>\n<\/li>\n<li>\n<p>C  &#8212; &gt;  A<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u0430\u043a\u0438\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f: \u2003\u2003 \u2003\u2003 \u2003\u2003 \u2003\u2003\u2003\u2003 \u2003\u2003\u2003\u2003 \u2003\u2003 \u2003\u2003 \u2003\u2003\u2003\u2003 \u2003\u2003\u2003\u2003\u2003\u2003 \u2003\u2003<\/p>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p>\u041f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u0435<\/p>\n<\/th>\n<th>\n<p>\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>A B<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>AB AC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>AB AC AB A<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>AB AC AB A AB AC AB<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5<\/p>\n<\/td>\n<td>\n<p>AB AC AB A AB AC AB AB AC AB A AB AC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p><em>\u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435\u2026<\/em><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f<strong> L-\u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/strong>, \u044d\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0440\u043e\u0441\u0442\u0430 \u043a\u0430\u043a \u0436\u0438\u0432\u044b\u0445 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c\u043e\u0432, \u0442\u0430\u043a \u0438 \u043d\u0435\u0436\u0438\u0432\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 <em>(\u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u043e\u0432, \u0440\u0430\u043a\u043e\u0432\u0438\u043d \u043c\u043e\u043b\u043b\u044e\u0441\u043a\u043e\u0432 \u0438\u043b\u0438 \u043f\u0447\u0435\u043b\u0438\u043d\u044b\u0445 \u0441\u043e\u0442)<\/em>.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c1e\/019\/a12\/c1e019a12cc859bbc46a0cea6ba2e5b4.jpg\" width=\"1200\" height=\"552\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u043a Python, \u0432 \u043d\u0451\u043c \u0435\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <strong>\u201cturtle\u201d<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/99d\/9ec\/898\/99d9ec898eb5b6088c4be4036187461e.jpg\" width=\"848\" height=\"478\"><figcaption><\/figcaption><\/figure>\n<p><strong><u>\u0418\u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c:<\/u><\/strong><\/p>\n<ol>\n<li>\n<p> \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <strong>Turtle<\/strong> \u0432 \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442: <\/p>\n<p><code> import turtle <\/code><\/p>\n<\/li>\n<li>\n<p> \u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 <strong><em>\u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438<\/em><\/strong>:  <\/p>\n<p><code>turtle.hideturtle() <\/code><\/p>\n<p><code>turtle.tracer(1) <\/code><\/p>\n<p><code>turtle.penup() <\/code><\/p>\n<p><code>turtle.setposition(-300,340)<\/code><\/p>\n<p><code>turtle.pendown()<\/code><\/p>\n<p><code>turtle.pensize(1) <\/code><\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0437\u0430\u0434\u0430\u0451\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c\u043e\u0439 \u0430\u043a\u0441\u0438\u043e\u043c\u044b \u0438 \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438:    <\/p>\n<p><code>axiom = \"F+F+F+F\"<\/code><\/p>\n<p><code>tempAx = \"\" <\/code><\/p>\n<p><code>itr = 3  <\/code><\/p>\n<p><em>(<\/em><strong><em>itr-<\/em><\/strong><em> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0446\u0438\u043a\u043b\u0430, \u043e\u043d\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043d\u0430\u0448\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b)<\/em> <\/p>\n<\/li>\n<li>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435, \u0433\u0434\u0435 \u043a\u0430\u043a \u0440\u0430\u0437 \u043d\u0430\u043c \u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <strong>itr-<\/strong>, \u043c\u044b \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u0441\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0438 &#171;\u0432\u044b\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435\u043c&#187; \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0433\u0435\u043d\u043e\u043c\u0430 \u043d\u0430\u0448\u0435\u0433\u043e \u0444\u0440\u0430\u043a\u0442\u0430\u043b\u0430\/\u0440\u0430\u0441\u0442\u0435\u043d\u0438\u044f:   <\/p>\n<p> <code>for k in range(itr): <\/code><\/p>\n<p><code>    for ch in axiom:  <\/code><\/p>\n<p><code>       if ch == \"+\":<\/code><\/p>\n<p><code>             tempAx = tempAx + \"+\"<\/code><\/p>\n<p><code>       elif ch == \"-\":<\/code><\/p>\n<p><code>             tempAx = tempAx + \"-\"<\/code><\/p>\n<p><code>         elif ch == \"F\": #F<\/code><\/p>\n<p><code>             tempAx = tempAx + \"F+F-f-F+F\"<\/code><\/p>\n<p><code>         else:<\/code><\/p>\n<p><code>              tempAx = tempAx + \"f\"<\/code><\/p>\n<p><code>     axiom = tempAx<\/code><\/p>\n<p><code>   tempAx = \" \" <\/code><\/p>\n<p><code>   print(axiom)<\/code>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u043f\u0440\u043e\u0431\u0435\u0436\u0438\u043c\u0441\u044f \u043f\u043e \u0446\u0438\u043a\u043b\u0443, \u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0444\u0438\u043b\u044c\u0442\u0440 \u043d\u0430 \u0441\u0438\u043c\u0432\u043e\u043b <strong>&#171;+&#187;<\/strong>: <\/p>\n<p><code>if ch == \"+\":<\/code><\/p>\n<p><code>  tempAx = tempAx + \"+\" <\/code><\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0438\u0449\u0435\u043c \u0432 <em>\u0430\u043a\u0441\u0438\u043e\u043c\u0435<\/em> (\u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435) \u0437\u043d\u0430\u043a <strong>\u201c+\u201d<\/strong> \u0438 \u043f\u0440\u0438 \u0435\u0433\u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b <strong>\u201c+\u201d<\/strong> \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443.  \u0422\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438 \u0441 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c <strong>\u201c-\u201d<\/strong> \u0438 <strong>\u201cf\u201d<\/strong>, \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u044b <strong>\u201c-\u201d<\/strong> \u0438 <strong>\u201cf\u201d<\/strong> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041d\u043e \u043f\u0440\u0438 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u0432 \u043d\u0430\u0448\u0435\u0439 <em> \u0430\u043a\u0441\u0438\u043e\u043c\u0435 <\/em> \u0441\u0438\u043c\u0432\u043e\u043b\u0430 <strong>\u201cF\u201d<\/strong>, \u043c\u044b \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0430\u0447\u0435 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 <strong>\u201cF + F \u2013 f \u2013 F + F\u201d<\/strong>, \u0434\u043b\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u0438\u043d\u044b \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u0414\u0430\u043d\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0442\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 <strong>\u201c\u0433\u0435\u043d\u043e\u043c\u0430\u201d<\/strong>, \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a.  \u0412 \u043a\u043e\u043d\u0446\u0435 \u043c\u044b \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0430\u043a\u0441\u0438\u043e\u043c\u0443 \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0433\u0435\u043d\u043e\u043c\u0443 \u0438 \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u043c \u0435\u0433\u043e:<\/p>\n<p><code>axiom = tempAx <\/code><\/p>\n<p><code>tempAx = \" \" <\/code><\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 <em>(\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u043a\u0441\u0438\u043e\u043c\u044b)<\/em>:  <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/190\/255\/f33\/190255f33748c72df67e6c64467bc488\" width=\"1004\" height=\"104\"><figcaption><\/figcaption><\/figure>\n<\/li>\n<li>\n<p>\u041d\u0443 \u0447\u0442\u043e, \u0432\u0440\u043e\u0434\u0435 \u043f\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0433\u0435\u043d\u043e\u043c\u0430 \u0432\u0441\u0451 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0436\u0435 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0446\u0438\u043a\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0432 \u0433\u0435\u043d\u043e\u043c\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438:   <\/p>\n<p><code>for ch in axiom:<\/code><\/p>\n<p><code>     if ch == \"+\":<\/code><\/p>\n<p><code>         turtle.right(45)<\/code><\/p>\n<p><code>         turtle.forward(10)<\/code><\/p>\n<p><code>         turtle.right(45)<\/code><\/p>\n<p><code>     elif ch == \"-\":<\/code><\/p>\n<p><code>         turtle.left(45)<\/code><\/p>\n<p><code>         turtle.forward(10)<\/code><\/p>\n<p><code>         turtle.left(45)<\/code><\/p>\n<p><code>     else:<\/code><\/p>\n<p><code>         turtle.forward(20)  <\/code><\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u043e\u043c, \u043c\u044b \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u044b <strong>&#171;+&#187;, &#171;-&#171;, &#171;F&#187;<\/strong> \u0438 <strong>&#171;f&#187;<\/strong>. \u0422\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b <strong>&#171;+&#187;<\/strong>: <\/p>\n<p> <code>if ch == \"+\": <\/code><\/p>\n<p><code>    turtle.right(45)<\/code><\/p>\n<p><code>    turtle.forward(10)<\/code><\/p>\n<p><code>    turtle.right(45)<\/code> <\/p>\n<p>\u041c\u044b \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430 \u043f\u0440\u0430\u0432\u043e, \u043d\u0430 <strong>45 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432<\/strong>, \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u0435\u0437\u0436\u0430\u0435\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0440\u0430\u0432\u043d\u043e\u0435 <strong>10<\/strong>, \u0438 \u043f\u043e\u0442\u043e\u043c \u043c\u044b \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u043f\u0440\u0430\u0432\u043e, \u043d\u0430 <strong>45 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432<\/strong>.  \u041a\u043e\u0433\u0434\u0430 \u0436\u0435 \u043c\u044b \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b <strong>&#171;-&#171;<\/strong>:   <\/p>\n<p> <code>elif ch == \"-\":<\/code><\/p>\n<p><code>     turtle.left(45)<\/code><\/p>\n<p><code>     turtle.forward(10)<\/code><\/p>\n<p><code>     turtle.left(45)<\/code> <\/p>\n<p> \u041c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0432\u0441\u0435 \u0442\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0447\u0442\u043e \u0438 \u043f\u0440\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0435<strong> &#171;+&#187;<\/strong>, \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0443\u0436\u0435 \u043d\u0435 \u0432\u043f\u0440\u0430\u0432\u043e, \u0430 \u0443\u0436\u0435 \u0432\u043b\u0435\u0432\u043e.  \u041d\u043e \u0435\u0441\u043b\u0438 \u0436\u0435 \u043c\u044b \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u044b<strong> &#171;F&#187;<\/strong> \u0438\u043b\u0438 <strong>&#171;f&#187;<\/strong>, \u0442\u043e \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0443\u0435\u043c \u043f\u0440\u043e\u0435\u0437\u0436\u0430\u0442\u044c \u0432\u043f\u0435\u0440\u0451\u0434 \u043d\u0430 <strong>20<\/strong> \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439:    <\/p>\n<p><code>else: <\/code><\/p>\n<p><code>    turtle.forward(20) <\/code><\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 <em>\u0444\u0440\u0430\u043a\u0442\u0430\u043b-\u0441\u043d\u0435\u0436\u0438\u043d\u043a\u0443<\/em>:  <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d5f\/695\/93b\/d5f69593b58ddf9e485c3f4b1723455f\" width=\"581\" height=\"553\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e88\/eed\/b7d\/e88eedb7dfc33ad91d0babfee5d9fd55\" width=\"571\" height=\"527\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0ae\/bfc\/b45\/0aebfcb45c7eb36c5d23f24e26d583b5\" width=\"535\" height=\"529\"><figcaption><\/figcaption><\/figure>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u043c\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u043c \u0440\u0430\u0441\u043a\u0440\u0430\u0441\u0438\u0442\u044c \u043d\u0430\u0448 <em>\u0444\u0440\u0430\u043a\u0442\u0430\u043b-\u0441\u043d\u0435\u0436\u0438\u043d\u043a\u0443<\/em>, \u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0446\u0438\u043a\u043b\u043e\u043c \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0438:  <\/p>\n<p><code>turtle.fillcolor(\"#99BBFF\")<\/code><\/p>\n<p><code>turtle.begin_fill() <\/code><\/p>\n<p>\u0413\u0434\u0435 <strong><em>#99BBFF<\/em><\/strong> &#8212; \u044d\u0442\u043e \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430 \u0446\u0432\u0435\u0442\u0430 <em>(RGB: 153, 187, 255)<\/em>, \u0430 <strong><em>begin_fill()<\/em><\/strong> \u044d\u0442\u043e \u043d\u0430\u0447\u0430\u043b\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u043e\u043c. \u0418 \u0432 \u043a\u043e\u043d\u0446\u0435, \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0446\u0438\u043a\u043b\u0430, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0438: <\/p>\n<p><code>turtle.end_fill()<\/code><\/p>\n<p><code>turtle.update()<\/code><\/p>\n<p><code>turtle.done()<\/code><\/p>\n<p> \u0410 <strong><em>end_fill()<\/em><\/strong> \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043a\u043e\u043d\u0435\u0446 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0430\u0448\u0443 <em>&#171;\u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0443&#187;<\/em>.  \u0418 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 <em>\u0444\u0440\u0430\u043a\u0442\u0430\u043b-\u0441\u043d\u0435\u0436\u0438\u043d\u043a\u0443<\/em>:   <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fb2\/77a\/647\/fb277a64715ee08b50aa40b6a2633a13\" width=\"527\" height=\"525\"><figcaption><\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<p>\u0412\u044b \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 <a href=\"https:\/\/github.com\/VolinNilov\/L-systems\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, &#171;\u043f\u043e\u0442\u044b\u043a\u0430\u0442\u044c&#187; \u043a\u043e\u0434, \u0438\u0437\u043c\u0435\u043d\u044f\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0451\u043c<\/a>. <\/p>\n<p>\u0412 \u043a\u043e\u043d\u0446\u0435, \u0445\u043e\u0447\u0443 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u044f \u043d\u0430\u043f\u0438\u0448\u0443 \u0435\u0449\u0451 \u0440\u044f\u0434 \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u043e \u0442\u0435\u043c\u0435 &#171;L-\u0441\u0438\u0441\u0442\u0435\u043c\u044b&#187;, \u043d\u043e \u0430 \u043f\u043e\u043a\u0430, \u0445\u043e\u0447\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0430\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u043e\u0435\u0433\u043e <s>\u0442\u044b\u043a\u0430\u043d\u044c\u044f<\/s> \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u0442\u0432\u0430:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/801\/a04\/98f\/801a0498fbe22a4a918360054dcbaab5\" width=\"553\" height=\"553\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/978\/b83\/c40\/978b83c4059bf680f060a085189b5250\" width=\"327\" height=\"325\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/59d\/a2c\/5b2\/59da2c5b26a3010d7064a36506f28578\" width=\"402\" height=\"358\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/013\/f3a\/2e2\/013f3a2e2d20cb12db84d1ef0b62a7a3\" width=\"225\" height=\"221\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d46\/860\/301\/d468603011edcfe9dfdea74299bf8546\" width=\"417\" height=\"401\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/540062\/\"> https:\/\/habr.com\/ru\/post\/540062\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u043d\u0451\u043c \u0441 \u0430\u0437\u043e\u0432, \u0435\u0441\u043b\u0438 \u0431\u0440\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0438\u0437 \u0432\u0441\u0435\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0438 \u0432\u0441\u0435\u043c\u0438 \u043b\u044e\u0431\u0438\u043c\u043e\u0439 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438, \u0442\u043e <strong>L-\u0441\u0438\u0441\u0442\u0435\u043c\u0430<\/strong> (\u0438\u043b\u0438 \u0436\u0435<strong> \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u041b\u0438\u043d\u0434\u0435\u043d\u043c\u0430\u0439\u0435\u0440\u0430<\/strong>) \u2014 \u044d\u0442\u043e \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u0438\u0434 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u043a\u0438.  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c, \u0442\u043e <strong> L-\u0441\u0438\u0441\u0442\u0435\u043c\u0430 <\/strong> \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a, \u043d\u0430\u0431\u043e\u0440\u0430 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u044e\u0449\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0434\u0430\u044e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 (<em> \u201c\u0430\u043a\u0441\u0438\u043e\u043c\u044b\u201d <\/em>), \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435, \u0438 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.  \u0421\u0430\u043c\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c<strong> L-\u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0434\u0435\u0440\u0435\u0432\u0430. <\/p>\n<p><strong><u>\u0412\u0432\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/u><\/strong> <\/p>\n<p><strong><em>\u0421\u0442\u0440\u043e\u043a\u0430 <\/em><\/strong>(<em>\u0434\u0430\u043b\u0435\u0435 \u0410\u043a\u0441\u0438\u043e\u043c\u0430<\/em>): A B <\/p>\n<p><strong><em>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/em><\/strong>(<em>\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 \u0434\u0435\u0440\u0435\u0432\u0430<\/em>):  A B C <\/p>\n<p><strong><em>\u041f\u0440\u0430\u0432\u0438\u043b\u043e<\/em><\/strong> (<em>\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043a\u0430\u0436\u0434\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f<\/em>): <\/p>\n<ul>\n<li>\n<p>A &#8212; &gt; AB<\/p>\n<\/li>\n<li>\n<p>B &#8212; &gt; AC<\/p>\n<\/li>\n<li>\n<p>C  &#8212; &gt;  A<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u0430\u043a\u0438\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f: \u2003\u2003 \u2003\u2003 \u2003\u2003 \u2003\u2003\u2003\u2003 \u2003\u2003\u2003\u2003 \u2003\u2003 \u2003\u2003 \u2003\u2003\u2003\u2003 \u2003\u2003\u2003\u2003\u2003\u2003 \u2003\u2003<\/p>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p>\u041f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u0435<\/p>\n<\/th>\n<th>\n<p>\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>A B<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>AB AC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>AB AC AB A<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>AB AC AB A AB AC AB<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5<\/p>\n<\/td>\n<td>\n<p>AB AC AB A AB AC AB AB AC AB A AB AC<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p><em>\u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435\u2026<\/em><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f<strong> L-\u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/strong>, \u044d\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0440\u043e\u0441\u0442\u0430 \u043a\u0430\u043a \u0436\u0438\u0432\u044b\u0445 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043c\u043e\u0432, \u0442\u0430\u043a \u0438 \u043d\u0435\u0436\u0438\u0432\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 <em>(\u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u043e\u0432, \u0440\u0430\u043a\u043e\u0432\u0438\u043d \u043c\u043e\u043b\u043b\u044e\u0441\u043a\u043e\u0432 \u0438\u043b\u0438 \u043f\u0447\u0435\u043b\u0438\u043d\u044b\u0445 \u0441\u043e\u0442)<\/em>.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u043a Python, \u0432 \u043d\u0451\u043c \u0435\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <strong>\u201cturtle\u201d<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong><u>\u0418\u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c:<\/u><\/strong><\/p>\n<ol>\n<li>\n<p> \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <strong>Turtle<\/strong> \u0432 \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442: <\/p>\n<p><code> import turtle <\/code><\/p>\n<\/li>\n<li>\n<p> \u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 <strong><em>\u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438<\/em><\/strong>:  <\/p>\n<p><code>turtle.hideturtle() <\/code><\/p>\n<p><code>turtle.tracer(1) <\/code><\/p>\n<p><code>turtle.penup() <\/code><\/p>\n<p><code>turtle.setposition(-300,340)<\/code><\/p>\n<p><code>turtle.pendown()<\/code><\/p>\n<p><code>turtle.pensize(1) <\/code><\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0437\u0430\u0434\u0430\u0451\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c\u043e\u0439 \u0430\u043a\u0441\u0438\u043e\u043c\u044b \u0438 \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438:    <\/p>\n<p><code>axiom = \"F+F+F+F\"<\/code><\/p>\n<p><code>tempAx = \"\" <\/code><\/p>\n<p><code>itr = 3  <\/code><\/p>\n<p><em>(<\/em><strong><em>itr-<\/em><\/strong><em> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0446\u0438\u043a\u043b\u0430, \u043e\u043d\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043d\u0430\u0448\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b)<\/em> <\/p>\n<\/li>\n<li>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435, \u0433\u0434\u0435 \u043a\u0430\u043a \u0440\u0430\u0437 \u043d\u0430\u043c \u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <strong>itr-<\/strong>, \u043c\u044b \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u043c\u0441\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0438 &#171;\u0432\u044b\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435\u043c&#187; \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0433\u0435\u043d\u043e\u043c\u0430 \u043d\u0430\u0448\u0435\u0433\u043e \u0444\u0440\u0430\u043a\u0442\u0430\u043b\u0430\/\u0440\u0430\u0441\u0442\u0435\u043d\u0438\u044f:   <\/p>\n<p> <code>for k in range(itr): <\/code><\/p>\n<p><code>    for ch in axiom:  <\/code><\/p>\n<p><code>       if ch == \"+\":<\/code><\/p>\n<p><code>             tempAx = tempAx + \"+\"<\/code><\/p>\n<p><code>       elif ch == \"-\":<\/code><\/p>\n<p><code>             tempAx = tempAx + \"-\"<\/code><\/p>\n<p><code>         elif ch == \"F\": #F<\/code><\/p>\n<p><code>             tempAx = tempAx + \"F+F-f-F+F\"<\/code><\/p>\n<p><code>         else:<\/code><\/p>\n<p><code>              tempAx = tempAx + \"f\"<\/code><\/p>\n<p><code>     axiom = tempAx<\/code><\/p>\n<p><code>   tempAx = \" \" <\/code><\/p>\n<p><code>   print(axiom)<\/code>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u043f\u0440\u043e\u0431\u0435\u0436\u0438\u043c\u0441\u044f \u043f\u043e \u0446\u0438\u043a\u043b\u0443, \u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0444\u0438\u043b\u044c\u0442\u0440 \u043d\u0430 \u0441\u0438\u043c\u0432\u043e\u043b <strong>&#171;+&#187;<\/strong>: <\/p>\n<p><code>if ch == \"+\":<\/code><\/p>\n<p><code>  tempAx = tempAx + \"+\" <\/code><\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0438\u0449\u0435\u043c \u0432 <em>\u0430\u043a\u0441\u0438\u043e\u043c\u0435<\/em> (\u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435) \u0437\u043d\u0430\u043a <strong>\u201c+\u201d<\/strong> \u0438 \u043f\u0440\u0438 \u0435\u0433\u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b <strong>\u201c+\u201d<\/strong> \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443.  \u0422\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438 \u0441 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c <strong>\u201c-\u201d<\/strong> \u0438 <strong>\u201cf\u201d<\/strong>, \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u044b <strong>\u201c-\u201d<\/strong> \u0438 <strong>\u201cf\u201d<\/strong> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041d\u043e \u043f\u0440\u0438 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u0432 \u043d\u0430\u0448\u0435\u0439 <em> \u0430\u043a\u0441\u0438\u043e\u043c\u0435 <\/em> \u0441\u0438\u043c\u0432\u043e\u043b\u0430 <strong>\u201cF\u201d<\/strong>, \u043c\u044b \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0430\u0447\u0435 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 <strong>\u201cF + F \u2013 f \u2013 F + F\u201d<\/strong>, \u0434\u043b\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u0438\u043d\u044b \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u0414\u0430\u043d\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0442\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 <strong>\u201c\u0433\u0435\u043d\u043e\u043c\u0430\u201d<\/strong>, \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a.  \u0412 \u043a\u043e\u043d\u0446\u0435 \u043c\u044b \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c \u0430\u043a\u0441\u0438\u043e\u043c\u0443 \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0433\u0435\u043d\u043e\u043c\u0443 \u0438 \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u043c \u0435\u0433\u043e:<\/p>\n<p><code>axiom = tempAx <\/code><\/p>\n<p><code>tempAx = \" \" <\/code><\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 <em>(\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u043a\u0441\u0438\u043e\u043c\u044b)<\/em>:  <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<\/li>\n<li>\n<p>\u041d\u0443 \u0447\u0442\u043e, \u0432\u0440\u043e\u0434\u0435 \u043f\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0433\u0435\u043d\u043e\u043c\u0430 \u0432\u0441\u0451 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0436\u0435 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0446\u0438\u043a\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0432 \u0433\u0435\u043d\u043e\u043c\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0438:   <\/p>\n<p><code>for ch in axiom:<\/code><\/p>\n<p><code>     if ch == \"+\":<\/code><\/p>\n<p><code>         turtle.right(45)<\/code><\/p>\n<p><code>         turtle.forward(10)<\/code><\/p>\n<p><code>         turtle.right(45)<\/code><\/p>\n<p><code>     elif ch == \"-\":<\/code><\/p>\n<p><code>         turtle.left(45)<\/code><\/p>\n<p><code>         turtle.forward(10)<\/code><\/p>\n<p><code>         turtle.left(45)<\/code><\/p>\n<p><code>     else:<\/code><\/p>\n<p><code>         turtle.forward(20)  <\/code><\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u043e\u043c, \u043c\u044b \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u044b <strong>&#171;+&#187;, &#171;-&#171;, &#171;F&#187;<\/strong> \u0438 <strong>&#171;f&#187;<\/strong>. \u0422\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b <strong>&#171;+&#187;<\/strong>: <\/p>\n<p> <code>if ch == \"+\": <\/code><\/p>\n<p><code>    turtle.right(45)<\/code><\/p>\n<p><code>    turtle.forward(10)<\/code><\/p>\n<p><code>    turtle.right(45)<\/code> <\/p>\n<p>\u041c\u044b \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430 \u043f\u0440\u0430\u0432\u043e, \u043d\u0430 <strong>45 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432<\/strong>, \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u0435\u0437\u0436\u0430\u0435\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0440\u0430\u0432\u043d\u043e\u0435 <strong>10<\/strong>, \u0438 \u043f\u043e\u0442\u043e\u043c \u043c\u044b \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u043f\u0440\u0430\u0432\u043e, \u043d\u0430 <strong>45 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432<\/strong>.  \u041a\u043e\u0433\u0434\u0430 \u0436\u0435 \u043c\u044b \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b <strong>&#171;-&#171;<\/strong>:   <\/p>\n<p> <code>elif ch == \"-\":<\/code><\/p>\n<p><code>     turtle.left(45)<\/code><\/p>\n<p><code>     turtle.forward(10)<\/code><\/p>\n<p><code>     turtle.left(45)<\/code> <\/p>\n<p> \u041c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0432\u0441\u0435 \u0442\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0447\u0442\u043e \u0438 \u043f\u0440\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0435<strong> &#171;+&#187;<\/strong>, \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0443\u0436\u0435 \u043d\u0435 \u0432\u043f\u0440\u0430\u0432\u043e, \u0430 \u0443\u0436\u0435 \u0432\u043b\u0435\u0432\u043e.  \u041d\u043e \u0435\u0441\u043b\u0438 \u0436\u0435 \u043c\u044b \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u044b<strong> &#171;F&#187;<\/strong> \u0438\u043b\u0438 <strong>&#171;f&#187;<\/strong>, \u0442\u043e \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0443\u0435\u043c \u043f\u0440\u043e\u0435\u0437\u0436\u0430\u0442\u044c \u0432\u043f\u0435\u0440\u0451\u0434 \u043d\u0430 <strong>20<\/strong> \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439:    <\/p>\n<p><code>else: <\/code><\/p>\n<p><code>    turtle.forward(20) <\/code><\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 <em>\u0444\u0440\u0430\u043a\u0442\u0430\u043b-\u0441\u043d\u0435\u0436\u0438\u043d\u043a\u0443<\/em>:  <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0436\u0435 \u043c\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u043c \u0440\u0430\u0441\u043a\u0440\u0430\u0441\u0438\u0442\u044c \u043d\u0430\u0448 <em>\u0444\u0440\u0430\u043a\u0442\u0430\u043b-\u0441\u043d\u0435\u0436\u0438\u043d\u043a\u0443<\/em>, \u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0446\u0438\u043a\u043b\u043e\u043c \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0438:  <\/p>\n<p><code>turtle.fillcolor(\"#99BBFF\")<\/code><\/p>\n<p><code>turtle.begin_fill() <\/code><\/p>\n<p>\u0413\u0434\u0435 <strong><em>#99BBFF<\/em><\/strong> &#8212; \u044d\u0442\u043e \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0430 \u0446\u0432\u0435\u0442\u0430 <em>(RGB: 153, 187, 255)<\/em>, \u0430 <strong><em>begin_fill()<\/em><\/strong> \u044d\u0442\u043e \u043d\u0430\u0447\u0430\u043b\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u043e\u043c. \u0418 \u0432 \u043a\u043e\u043d\u0446\u0435, \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0446\u0438\u043a\u043b\u0430, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0438: <\/p>\n<p><code>turtle.end_fill()<\/code><\/p>\n<p><code>turtle.update()<\/code><\/p>\n<p><code>turtle.done()<\/code><\/p>\n<p> \u0410 <strong><em>end_fill()<\/em><\/strong> \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043a\u043e\u043d\u0435\u0446 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0430\u0448\u0443 <em>&#171;\u0447\u0435\u0440\u0435\u043f\u0430\u0448\u043a\u0443&#187;<\/em>.  \u0418 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 <em>\u0444\u0440\u0430\u043a\u0442\u0430\u043b-\u0441\u043d\u0435\u0436\u0438\u043d\u043a\u0443<\/em>:   <\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<p>\u0412\u044b \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 <a href=\"https:\/\/github.com\/VolinNilov\/L-systems\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, &#171;\u043f\u043e\u0442\u044b\u043a\u0430\u0442\u044c&#187; \u043a\u043e\u0434, \u0438\u0437\u043c\u0435\u043d\u044f\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0451\u043c<\/a>. <\/p>\n<p>\u0412 \u043a\u043e\u043d\u0446\u0435, \u0445\u043e\u0447\u0443 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u044f \u043d\u0430\u043f\u0438\u0448\u0443 \u0435\u0449\u0451 \u0440\u044f\u0434 \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u043e \u0442\u0435\u043c\u0435 &#171;L-\u0441\u0438\u0441\u0442\u0435\u043c\u044b&#187;, \u043d\u043e \u0430 \u043f\u043e\u043a\u0430, \u0445\u043e\u0447\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0430\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u043e\u0435\u0433\u043e <s>\u0442\u044b\u043a\u0430\u043d\u044c\u044f<\/s> \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u0442\u0432\u0430:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/540062\/\"> https:\/\/habr.com\/ru\/post\/540062\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-317214","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/317214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=317214"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/317214\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=317214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=317214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=317214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}