{"id":257021,"date":"2015-05-12T15:55:02","date_gmt":"2015-05-12T11:55:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=257021"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=257021","title":{"rendered":"\u0420\u0430\u0437\u0433\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438\u0437 \u0442\u0432\u0438\u0442\u0442\u0435\u0440\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Intel"},"content":{"rendered":"<p>             \u0418\u043c\u0435\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u0448\u0438\u043b\u043a\u0430, \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0449\u0430\u044f \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0439, \u043b\u044f\u043c\u0431\u0434 \u0438 \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u043e \u0440\u0435\u0434\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 __import__:<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/8b9\/272\/b21\/8b9272b21bed4e24bbf3874b3520fae9.png\"\/><\/p>\n<p>  \u0427\u0442\u043e \u0437\u0430 \u0437\u0432\u0435\u0440\u044c \u0438 \u0447\u0442\u043e \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442?<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043a\u0430\u043a \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043b\u044e\u0434\u0438 \u043f\u0435\u0440\u0435\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u043a\u043e\u0434 \u0432 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c. \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442. \u041d\u043e \u0440\u0430\u0437 \u0443\u0436 \u0432\u0440\u0435\u043c\u044f \u0434\u0430\u0432\u043d\u043e \u0437\u0430 \u043f\u043e\u043b\u043d\u043e\u0447\u044c, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0440\u0443\u043a\u0430\u043c\u0438. <br \/>  <a name=\"habracut\"><\/a><br \/>  \u041a\u043e\u0434 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 \u0432\u044b \u0431\u043e\u0438\u0442\u0435\u0441\u044c \u043f\u043e\u0434\u0434\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0431\u043b\u0430\u0437\u043d\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u043b\u0443\u0447\u0448\u0435 \u043d\u0430 \u0431\u0443\u043c\u0430\u0436\u043a\u0435. <\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0432\u0441\u0451 \u044d\u0442\u043e \u0431\u0435\u0437 \u0447\u0451\u0440\u0442\u043e\u0432\u043e\u0433\u043e \u043d\u0430\u043a\u043b\u043e\u043d\u0430, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f (\u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e) \u043f\u0440\u0438\u0434\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0443 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u0432\u0438\u0434:<\/p>\n<pre><code class=\"python\">getattr( \t__import__(True.__class__.__name__[1] + [].__class__.__name__[2]), \t().__class__.__eq__.__class__.__name__[:2] + ().__iter__().__class__.__name__[5:8] ) ( \t1, \t(  \t\tlambda _, __: _(_, __) \t)( \t  \tlambda _, __: chr(__ % 256) + _(_, __ \/\/ 256) if __ else &quot;&quot;,          882504235958091178581291885595786461602115 \t ) )  <\/code><\/pre>\n<p>  \u041e\u0442 PEP8 \u043c\u044b \u0434\u0430\u043b\u0435\u043a\u0438, \u0434\u0430 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u043d\u0430 \u043a\u043e\u0434 \u0440\u0435\u0432\u044c\u044e \u043f\u043e\u043a\u0430 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442, \u043d\u043e \u0443\u0436\u0435 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043b\u0443\u0447\u0448\u0435.<\/p>\n<p>  \u0418\u043c\u0435\u0435\u0442\u0441\u044f getattr, \u0437\u043d\u0430\u0447\u0438\u0442 \u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u043a\u043e\u0431\u043a\u0438 \u00ab\u0432\u0435\u0440\u043d\u0443\u0442\u00bb \u043d\u0430\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0430 \u0432\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432. <br \/>  \u041f\u0435\u0440\u0432\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c getattr \u0431\u0435\u0440\u0451\u0442 \u043e\u0431\u044a\u0435\u043a\u0442, \u0432\u0442\u043e\u0440\u044b\u043c \u2014 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442. \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u0430. <\/p>\n<p>  \u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0444\u0443\u043d\u043a\u0446\u0438\u044f __import__ \u2014 \u044d\u0442\u043e \u0442\u043e, \u0432\u043e \u0447\u0442\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u043d\u0430\u043c \u00abfrom X import Y as Z\u00bb. \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u0434\u043a\u0430\u044f \u0438 \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u00ab\u0431\u043e\u0435\u0432\u043e\u0439\u00bb \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043d\u0435 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0443\u0433\u043b\u0443 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0448\u044c. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0435\u0451 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043c\u043e\u0436\u043d\u043e \u0432 <a href=\"https:\/\/docs.python.org\/2\/library\/functions.html#__import__\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>, \u043c\u044b \u0436\u0435 \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0437\u0430\u044f\u0432\u0438\u043c, \u0447\u0442\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044e:<\/p>\n<pre><code class=\"python\">from True.__class__.__name__[1] + [].__class__.__name__[2] import  ().__class__.__eq__.__class__.__name__[:2] + ().__iter__().__class__.__name__[5:8]) <\/code><\/pre>\n<p>  \u0421 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0441\u0442\u043e \u2014 \u0438\u0434\u0435\u043c \u043f\u043e \u0441\u0442\u0443\u043f\u0435\u043d\u044c\u043a\u0430\u043c. \u041f\u043e\u0434 \u043d\u0443\u0436\u0434\u044b True \u0438 False \u0432 \u043f\u0438\u0442\u043e\u043d\u0435 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0438\u043f \u00abbool\u00bb, \u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0432\u0435\u0440\u043d\u0435\u0442 \u043d\u0430\u043c \u0446\u0435\u043f\u043e\u0447\u043a\u0430 __class__.__name__. \u0412\u043e\u0437\u044c\u043c\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0431\u0443\u043a\u0432\u0430 \u00abo\u00bb. <br \/>  \u041f\u043e\u0438\u0441\u043a\u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u043a\u0432\u044b \u043d\u0435 \u043c\u043d\u043e\u0433\u0438\u043c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u2014 [] \u044d\u0442\u043e \u0441\u043f\u0438\u0441\u043e\u043a, \u0441\u043f\u0438\u0441\u043e\u043a \u044d\u0442\u043e \u00ablist\u00bb, \u00ablist\u00bb[2] \u044d\u0442\u043e \u00abs\u00bb. <br \/>  \u041f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043c\u0438\u043d\u0438-\u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0430:<\/p>\n<pre><code class=\"python\">from os import ().__class__.__eq__.__class__.__name__[:2] + ().__iter__().__class__.__name__[5:8]) <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e. &quot;()&quot; \u044d\u0442\u043e \u043a\u043e\u0440\u0442\u0435\u0436, \u0442.\u0435. tuple, __eq__ \u044d\u0442\u043e \u00ab\u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f\u00bb \u043e\u0431\u0451\u0440\u0442\u043a\u0430 \u0434\u043b\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f &quot;==&quot;. \u0422\u0443\u0442 \u043c\u044b \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043c \u0432 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0443\u044e \u0441\u0443\u0431\u0441\u0442\u0430\u043d\u0446\u0438\u044e, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0443\u043c\u0430\u0435\u043c, \u0447\u0442\u043e &quot;==.__class__&quot; \u044d\u0442\u043e \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u00abfunction\u00bb. \u0412 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u043e \u00abwrapper_descriptor\u00bb, \u0447\u0442\u043e \u043d\u0438\u043a\u0442\u043e \u0431\u044b \u0438 \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043d\u043e \u0437\u0434\u0435\u0441\u044c \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u044f \u043d\u0435 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d \u0432 \u0442\u0430\u0439\u043d\u0443 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0434\u043b\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0434\u0435\u0435\u043c\u0441\u044f \u043d\u0430 \u0435\u0451 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. \u0412\u043e\u0437\u044c\u043c\u0435\u043c \u0441\u0440\u0435\u0437 \u00abwrapper_descriptor\u00bb[:2], \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u00abwr\u00bb. <\/p>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f, \u0438\u0431\u043e \u043c\u043e\u0434\u0443\u043b\u044c \u00abos\u00bb \u0438\u043c\u0435\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u043c\u0435\u0442\u043e\u0434, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u043d\u0430 \u00abwr\u00bb \u0438 \u044d\u0442\u043e, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, write. <br \/>  \u0420\u0430\u0437\u0431\u043e\u0440 \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e. <\/p>\n<pre><code class=\"python\">from os import write <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u043c\u044b \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u0438 \u0440\u0430\u043d\u0435\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e write \u0441 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438. <\/p>\n<pre><code class=\"python\">from os import write  write(1,       ( lambda _, __: _(_, __) ) ( \t\t\t\t  lambda _, __: chr(__ % 256) + _(_, __ \/\/ 256) if __ else &quot;&quot;,  \t\t\t\t  882504235958091178581291885595786461602115 \t\t\t\t  )      ) <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u0434\u0442\u0438 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e 1, \u0438 \u044d\u0442\u043e\u2026 stdout! \u041f\u0440\u043e\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f, \u043d\u0430\u0448 os.write \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a print. <\/p>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \u043f\u0435\u0440\u0432\u0430\u044f \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043a\u043e\u0431\u043a\u0438, \u0437\u043d\u0430\u0447\u0438\u0442 \u0435\u0451 \u0432\u044b\u0437\u043e\u0432 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c \u0436\u0435. <\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043d\u044f\u0442\u044c \u0447\u0442\u043e \u043e\u043d\u0430 \u0434\u0435\u043b\u0430\u0435\u0442, \u0437\u0430\u043f\u0438\u0448\u0435\u043c \u0435\u0451 \u043a\u0430\u043a \u043e\u0431\u044b\u043a\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0443\u043c\u0430\u0432 \u043d\u0430\u0434 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c. <\/p>\n<pre><code class=\"python\">lambda _, __: _(_, __)  <\/code><\/pre>\n<p>  \u041c\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c \u0434\u0432\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430, \u0434\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043c\u0435\u0442\u043e\u0434\u0443 __call__ \u043f\u0435\u0440\u0432\u043e\u0433\u043e. \u041b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u0442\u043e\u0433\u0434\u0430:<\/p>\n<pre><code class=\"python\">def function_one(inner, argument): \treturn inner(inner, argument) <\/code><\/pre>\n<p>  \u041d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0438\u0447\u0435\u0433\u043e, \u043a\u0440\u043e\u043c\u0435 \u00ab\u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430\u00bb \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0448\u0435\u0439\u0441\u044f \u043d\u0430\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c. \u0427\u0442\u043e \u0436\u0435 \u044d\u0442\u043e \u0437\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f?<\/p>\n<pre><code class=\"python\">lambda _, __: chr(__ % 256) + _(_, __ \/\/ 256) if __ else &quot;&quot;,  <\/code><\/pre>\n<p>  \u0412\u0438\u0434\u0438\u043c \u043c\u0435\u0442\u043e\u0434 chr, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u044b \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0446\u0438\u0444\u0440\u0443 \u0432 \u0441\u0438\u043c\u0432\u043e\u043b. \u041f\u0435\u0440\u0435\u043f\u0438\u0448\u0435\u043c \u043f\u043e-\u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438:<\/p>\n<pre><code class=\"python\">def function_two(inner, ordC): \tif ordC: \t\treturn chr(ordC % 256) + inner(inner, ordC \/\/ 256) \telse: \t\treturn &quot;&quot;   <\/code><\/pre>\n<p>  \u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043d\u0430 \u0441\u0438\u0451, \u043e\u0441\u043e\u0437\u043d\u0430\u0451\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: \u043c\u044b \u0431\u0435\u0440\u0435\u043c \u0447\u0438\u0441\u043b\u043e, \u0434\u0435\u043b\u0438\u043c \u0435\u0433\u043e \u0441 \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c \u043d\u0430 256, \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043e\u0442 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043a\u0430\u043a \u0441\u0438\u043c\u0432\u043e\u043b, \u0430 \u0447\u0430\u0441\u0442\u043d\u043e\u0435 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 256 (\u0442.\u0435. \u0447\u0438\u0441\u043b\u043e \/\/ 256 == 0). \u041d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u0445\u0438\u0442\u0440\u043e. <\/p>\n<p>  \u041e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c, \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u044b\u0448\u0435. \u0420\u0430\u0437 \u0443\u0436 \u043c\u044b \u0441\u043e \u0432\u0441\u0435\u043c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0451 \u0432\u043e\u0435\u0434\u0438\u043d\u043e \u0438\u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u043d\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u043c \u043f\u0438\u0442\u043e\u043d\u0435. <\/p>\n<pre><code class=\"python\">from os import write  def recursive_print(number): \tif number: \t\twrite(1, chr(number % 256)) \t\trecursive_print(number \/\/ 256) \telse: \t\treturn   recursive_print(882504235958091178581291885595786461602115) <\/code><\/pre>\n<p>  \u0418 \u0445\u043e\u0442\u044c \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 \u0434\u043b\u044f \u0434\u043d\u044f \u043c\u0430\u0442\u0435\u0440\u0438 \u043e\u0442\u0432\u0435\u0434\u0435\u043d \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u0435\u043d\u044c, \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0441\u043e\u0432\u0435\u0442\u0443 \u0432\u0441\u0451 \u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c.             <\/p>\n<div class=\"clear\"><\/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=\"http:\/\/habrahabr.ru\/post\/257757\/\"> http:\/\/habrahabr.ru\/post\/257757\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             \u0418\u043c\u0435\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0430\u0448\u0438\u043b\u043a\u0430, \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0449\u0430\u044f \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0439, \u043b\u044f\u043c\u0431\u0434 \u0438 \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u043e \u0440\u0435\u0434\u043a\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 __import__:<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/8b9\/272\/b21\/8b9272b21bed4e24bbf3874b3520fae9.png\"\/><\/p>\n<p>  \u0427\u0442\u043e \u0437\u0430 \u0437\u0432\u0435\u0440\u044c \u0438 \u0447\u0442\u043e \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442?<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043a\u0430\u043a \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043b\u044e\u0434\u0438 \u043f\u0435\u0440\u0435\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u043a\u043e\u0434 \u0432 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c. \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442. \u041d\u043e \u0440\u0430\u0437 \u0443\u0436 \u0432\u0440\u0435\u043c\u044f \u0434\u0430\u0432\u043d\u043e \u0437\u0430 \u043f\u043e\u043b\u043d\u043e\u0447\u044c, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0440\u0443\u043a\u0430\u043c\u0438.   <\/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-257021","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/257021","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=257021"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/257021\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=257021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=257021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=257021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}