{"id":308035,"date":"2020-08-05T15:01:12","date_gmt":"2020-08-05T15:01:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=308035"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=308035","title":{"rendered":"\u0414\u0435\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0447\u0430\u0441\u0442\u043e\u0442\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/513926\/\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u044f\u0437\u044b\u043a\u0430 \u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u0438\u043c \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438 \u0442\u0435\u043a\u0441\u0442\u0430. \u041a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442!<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/156\/3a5\/b06\/1563a5b062947245d3bc51ea5a164369.jpg\" alt=\"s1200\"><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0427\u0430\u0441\u0442\u043e\u0442\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u044f\u0437\u044b\u043a\u0430<\/h2>\n<p>  <\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430, \u043e\u0442\u043a\u0443\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u0441 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u044f\u0437\u044b\u043a\u043e\u043c, \u0431\u044b\u043b\u0430 \u0432\u0437\u044f\u0442\u0430 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0435\u0442\u044c \u0412\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435, \u0430 \u0435\u0441\u043b\u0438 \u0431\u044b\u0442\u044c \u0442\u043e\u0447\u043d\u0435\u0435, \u0442\u043e \u044d\u0442\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f\u043c \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430\u0445 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0435\u0442\u0438. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u044f \u0432\u044b\u0431\u0440\u0430\u043b <a href=\"https:\/\/vk.com\/footballru\" rel=\"nofollow\">\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u0443\u0442\u0431\u043e\u043b<\/a>. \u0414\u043b\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f <a href=\"https:\/\/vk.com\/dev\/first_guide\" rel=\"nofollow\">API \u0412\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435<\/a>:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">def get_all_post_id():     sleep(1)     offset = 0     arr_posts_id = []     while True:         sleep(1)         r = requests.get('https:\/\/api.vk.com\/method\/wall.get',                          params={'owner_id': group_id, 'count': 100,                                   'offset': offset, 'access_token': token,                                    'v': version})         for i in range(100):             post_id = r.json()['response']['items'][i]['id']             arr_posts_id.append(post_id)          if offset &gt; 20000:             break         offset += 100     return arr_posts_id  def get_all_comments(arr_posts_id):     offset = 0     for post_id in arr_posts_id:         r = requests.get('https:\/\/api.vk.com\/method\/wall.getComments',                          params={'owner_id': group_id, 'post_id': post_id,                                   'count': 100, 'offset': offset,                                   'access_token': token, 'v': version})         for i in range(100):             try:                 write_txt('comments.txt', r.json()                 ['response']['items'][i]['text'])             except IndexError:                 pass<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043e \u043e\u043a\u043e\u043b\u043e 200MB \u0442\u0435\u043a\u0441\u0442\u0430. \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0447\u0438\u0442\u0430\u0435\u043c, \u043a\u0430\u043a\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">f = open('comments.txt') counter = Counter(f.read().lower())  def count_letters():     count = 0     for i in range(len(arr_letters)):         count += counter[arr_letters[i]]     return count  def frequency(count):     arr_my_frequency = []     for i in range(len(arr_letters)):         frequency = counter[arr_letters[i]] \/ count * 100         arr_my_frequency.append(frequency)     return arr_my_frequency<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0438\u0437 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A7%D0%B0%D1%81%D1%82%D0%BE%D1%82%D0%BD%D0%BE%D1%81%D1%82%D1%8C\" rel=\"nofollow\">\u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438<\/a> \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0432 \u0432\u0438\u0434\u0435:<\/p>\n<p>  <\/p>\n<p>1) \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/87f\/9c2\/d7f\/87f9c2d7f4849697a98330b584ee67e3.png\" alt=\"frequency_0\"><\/p>\n<p>  <\/p>\n<p>2) \u0442\u0430\u0431\u043b\u0438\u0446\u044b(\u0441\u043b\u0435\u0432\u0430 \u2014 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438, \u0441\u043f\u0440\u0430\u0432\u0430 \u2014 \u043c\u043e\u0438 \u0434\u0430\u043d\u043d\u044b\u0435)<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/409\/627\/39a\/40962739adec1b6913e210df94a879e7.png\" alt=\"frequency_1\"><\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0432 \u0434\u0430\u043d\u043d\u044b\u0435, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u043c\u043e\u0441\u0442\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043d\u043e\u043c \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u0432 \u0434\u0432\u0443\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u0445 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u0430\u043a\u0438\u0445 \u0431\u0443\u043a\u0432 \u043a\u0430\u043a \u00ab\u0430\u00bb \u0438 \u00ab\u043e\u00bb. <\/p>\n<p>  <\/p>\n<h2>\u0428\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0434\u0435\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430<\/h2>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0438\u0437 \u0442\u043e\u0433\u043e \u0436\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442\u044b\u0439 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0439\u0442\u0438 \u0431\u044b\u043b\u043e \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u043b\u0435\u0433\u043a\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0438\u0437 2-4 \u0441\u043b\u043e\u0432:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/2e7\/bff\/083\/2e7bff08306f729aa16f159cbc23eeec.png\" alt=\"\u0421\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430 \u043e\u0442 2020-07-27 20-07-06\"><\/p>\n<p>  <\/p>\n<p><em>\u0434\u0440\u0443\u0436\u0430 \u0441\u043b\u043e\u0432\u043e \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f, \u0432\u0430\u0440 \u0438\u0437\u0432\u0438\u043d\u0438\u043b\u0430\u0441\u044c \u0437\u0430 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0438 \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0438 \u0443\u0441\u043e\u043c\u043d\u0438\u0442\u044c\u0441\u044f \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445, \u0432\u0430\u0440 \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0438\u0445, \u044d\u0442\u043e \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043d\u0430\u0440\u043e\u0434 \u043d\u0435 \u0442\u0430\u043a\u043e\u0439 \u0443\u0436\u0435 \u0438 \u0442\u0443\u043f\u043e\u0439, \u043d\u0435 \u043f\u043e \u0440\u0430\u0434\u0438\u043e \u0436\u0435 \u0441\u043b\u0443\u0448\u0430\u0435\u043c \u0442\u0440\u0430\u043d\u0441\u043b\u044b \u0430 \u0432 \u0436\u0438\u0432\u0443\u044e \u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u0443\u0432\u0435\u0440\u0435\u043d \u0435\u0441\u043b\u0438 \u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u043d\u043e\u043a \u0434\u043b\u044f \u043c\u044e \u043e\u043d\u0438 \u0431\u044b \u043f\u043e\u0434\u0430\u0432\u043d\u043e \u0432 \u0442\u043e\u043f \u043d\u0435 \u043f\u043e\u043f\u0430\u043b\u0438, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u043d \u0441, \u0445\u043e\u0442\u044f \u0438\u0433\u0440\u0430\u044e\u0442 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0435 \u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u043e<\/em><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u0430\u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u0443\u043c \u2014 \u044d\u0442\u043e \u0448\u0438\u0444\u0440 \u0446\u0435\u0437\u0430\u0440\u044f, \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0448\u0430\u0433\u043e\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">def caesar_cipher():     file = open(&quot;text.txt&quot;)     text_for_encrypt = file.read().lower().replace(',', '')     letters = '\u0430\u0431\u0432\u0433\u0434\u0435\u0451\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f'     arr = []     step = 3     for i in text_for_encrypt:         if i == ' ':             arr.append(' ')         else:             arr.append(letters[(letters.find(i) + step) % 33])     text_for_decrypt = ''.join(arr)     return text_for_decrypt<\/code><\/pre>\n<p>  <\/p>\n<p><em>\u0436\u0443\u0446\u0439\u0433 \u0444\u043e\u0441\u0435\u0441 \u0442\u0441\u044a\u0445\u043b \u0440\u0437 \u0444\u044a\u043b\u0445\u0433\u0437\u0445\u0444\u0432 \u0435\u0433\u0443 \u043b\u043a\u0435\u043b\u0440\u043b\u043e\u0433\u0444\u044f \u043a\u0433 \u0440\u0437\u0442\u0443\u0433\u0435\u043b\u043e\u044f\u0440\u0441\u0437 \u0443\u0437\u044b\u0437\u0440\u043b\u0437 \u043b \u0430\u0445\u0441\u0451\u0441 \u0436\u0441\u0444\u0445\u0433\u0445\u0441\u044a\u0440\u0441 \u044a\u0445\u0441\u0434\u044e \u0444\u0436\u0437\u043e\u0433\u0445\u044f \u0435\u044e\u0435\u0441\u0436 \u043b \u0446\u0444\u0441\u043f\u0440\u043b\u0445\u044f\u0444\u0432 \u0435\u0441 \u043f\u0440\u0441\u0451\u043b\u0448 \u043b\u0448 \u0443\u0437\u044b\u0437\u0440\u043b\u0432\u0448 \u0435\u0433\u0443 \u0435\u043f\u0437\u0444\u0445\u0441 \u0445\u0441\u0451\u0441 \u044a\u0445\u0441\u0434\u044e \u043b\u0444\u043d\u043e\u0431\u044a\u0433\u0445\u044f \u0441\u044b\u043b\u0434\u043d\u043b \u0436\u0437\u043e\u0433\u0437\u0445 \u043b\u0448 \u0430\u0445\u0441 \u0433\u0434\u0444\u0441\u043e\u0431\u0445\u0440\u0441 \u0440\u0437 \u0440\u0441\u0443\u043f\u0433\u043e\u044f\u0440\u0441 \u0440\u0433\u0443\u0441\u0436 \u0440\u0437 \u0445\u0433\u043d\u0441\u043c \u0446\u0439\u0437 \u043b \u0445\u0446\u0442\u0441\u043c \u0440\u0437 \u0442\u0441 \u0443\u0433\u0436\u043b\u0441 \u0439\u0437 \u0444\u043e\u0446\u044b\u0433\u0437\u043f \u0445\u0443\u0433\u0440\u0444\u043e\u044e \u0433 \u0435 \u0439\u043b\u0435\u0446\u0431 \u0444\u043f\u0441\u0445\u0443\u043b\u043f \u0442\u0441 \u0430\u0445\u0441\u043f\u0446 \u0432 \u0434\u0441\u043e\u044f\u044b\u0437 \u044a\u0437\u043f \u0446\u0435\u0437\u0443\u0437\u0440 \u0437\u0444\u043e\u043b \u0434\u044e \u0440\u0437 \u0434\u044e\u043e\u0441 \u0444\u0445\u0441\u043e\u044f\u043d\u0441 \u0442\u0437\u0440\u0441\u043d \u0436\u043e\u0432 \u043f\u0431 \u0441\u0440\u043b \u0434\u044e \u0442\u0441\u0436\u0433\u0435\u0440\u0441 \u0435 \u0445\u0441\u0442 \u0440\u0437 \u0442\u0441\u0442\u0433\u043e\u043b \u0433\u0440\u0433\u043e\u0441\u0451\u043b\u044a\u0440\u0441 \u043d\u0433\u0444\u0433\u0437\u0445\u0444\u0432 \u043f\u0433\u0440 \u0444 \u0448\u0441\u0445\u0432 \u043b\u0451\u0443\u0433\u0431\u0445 \u043f\u0437\u0444\u0445\u0433\u043f\u043b \u043a\u0433\u0448\u0435\u0433\u0445\u044e\u0435\u0433\u0431\u044c\u0437 \u043b \u043d\u0443\u0433\u0444\u043b\u0435\u0441<\/em><\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0447\u0430\u0441\u0442\u043e\u0442\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">def decrypt_text(text_for_decrypt, arr_decrypt_letters):     arr_encrypt_text = []     arr_encrypt_letters = [' ', '\u043e', '\u0430', '\u0435', '\u0438', '\u0442', '\u043d', '\u043b',                            '\u0440', '\u0441', '\u0432', '\u043a', '\u043c', '\u0434', '\u0443', '\u043f',                            '\u0431', '\u0433', '\u044b', '\u0447', '\u044c', '\u0437', '\u044f', '\u0439',                            '\u0445', '\u0436', '\u0448', '\u044e', '\u0444', '\u044d', '\u0449',                            '\u0451', '\u0446', '\u044a']     dictionary = dict(zip(arr_decrypt_letters, arr_encrypt_letters))     for i in text_for_decrypt:         arr_encrypt_text.append(dictionary.get(i))     text_for_decrypt = ''.join(arr_encrypt_text)     print(text_for_decrypt)<\/code><\/pre>\n<p>  <\/p>\n<p><em>\u0434\u0432\u0443\u0436\u0430 \u043b\u0440\u043e\u0441\u043e \u043c\u043e\u043f\u0442\u0438 \u043d\u0435 \u043b\u043f\u0438\u0442\u0430\u0435\u0442\u043b\u0431 \u0441\u0430\u0432 \u0438\u0448\u0441\u0438\u043d\u0438\u0440\u0430\u043b\u0433 \u0448\u0430 \u043d\u0435\u043c\u0432\u0430\u0441\u0438\u0440\u0433\u043d\u043e\u0435 \u0432\u0435\u0439\u0435\u043d\u0438\u0435 \u0438 \u044e\u0442\u043e\u0445\u043e \u0434\u043e\u043b\u0442\u0430\u0442\u043e\u043f\u043d\u043e \u043f\u0442\u043e\u044b\u0447 \u043b\u0434\u0435\u0440\u0430\u0442\u0433 \u0441\u0447\u0441\u043e\u0434 \u0438 \u0443\u043b\u043e\u043a\u043d\u0438\u0442\u0433\u043b\u0431 \u0441\u043e \u043a\u043d\u043e\u0445\u0438\u0437 \u0438\u0437 \u0432\u0435\u0439\u0435\u043d\u0438\u0431\u0437 \u0441\u0430\u0432 \u0441\u043a\u0435\u043b\u0442\u043e \u0442\u043e\u0445\u043e \u043f\u0442\u043e\u044b\u0447 \u0438\u043b\u044c\u0440\u044f\u043f\u0430\u0442\u0433 \u043e\u0439\u0438\u044b\u044c\u0438 \u0434\u0435\u0440\u0430\u0435\u0442 \u0438\u0437 \u044e\u0442\u043e \u0430\u044b\u043b\u043e\u0440\u044f\u0442\u043d\u043e \u043d\u0435 \u043d\u043e\u0432\u043a\u0430\u0440\u0433\u043d\u043e \u043d\u0430\u0432\u043e\u0434 \u043d\u0435 \u0442\u0430\u044c\u043e\u0444 \u0443\u0436\u0435 \u0438 \u0442\u0443\u043c\u043e\u0444 \u043d\u0435 \u043c\u043e \u0432\u0430\u0434\u0438\u043e \u0436\u0435 \u043b\u0440\u0443\u0439\u0430\u0435\u043a \u0442\u0432\u0430\u043d\u043b\u0440\u0447 \u0430 \u0441 \u0436\u0438\u0441\u0443\u044f \u043b\u043a\u043e\u0442\u0432\u0438\u043a \u043c\u043e \u044e\u0442\u043e\u043a\u0443 \u0431 \u044b\u043e\u0440\u0433\u0439\u0435 \u043f\u0435\u043a \u0443\u0441\u0435\u0432\u0435\u043d \u0435\u043b\u0440\u0438 \u044b\u0447 \u043d\u0435 \u044b\u0447\u0440\u043e \u043b\u0442\u043e\u0440\u0433\u044c\u043e \u043c\u0435\u043d\u043e\u044c \u0434\u0440\u0431 \u043a\u044f \u043e\u043d\u0438 \u044b\u0447 \u043c\u043e\u0434\u0430\u0441\u043d\u043e \u0441 \u0442\u043e\u043c \u043d\u0435 \u043c\u043e\u043c\u0430\u0440\u0438 \u0430\u043d\u0430\u0440\u043e\u0445\u0438\u043f\u043d\u043e \u044c\u0430\u043b\u0430\u0435\u0442\u043b\u0431 \u043a\u0430\u043d \u043b \u0437\u043e\u0442\u0431 \u0438\u0445\u0432\u0430\u044f\u0442 \u043a\u0435\u043b\u0442\u0430\u043a\u0438 \u0448\u0430\u0437\u0441\u0430\u0442\u0447\u0441\u0430\u044f\u044d\u0435 \u0438 \u044c\u0432\u0430\u043b\u0438\u0441\u043e<\/em><\/p>\n<p>  <\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0433\u0434\u0435 \u043d\u0430\u0448 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u0448\u0438\u0431\u0441\u044f: \u0434\u0435\u0440\u0430\u0435\u0442 \u2192 \u0434\u0435\u043b\u0430\u0435\u0442, \u0432\u0430\u0434\u0438\u043e \u2192 \u0440\u0430\u0434\u0438\u043e, \u0442\u043e\u0445\u043e \u2192 \u0442\u043e\u0433\u043e, \u043d\u0430\u0432\u043e\u0434 \u2192 \u043d\u0430\u0440\u043e\u0434. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u0442\u0435\u043a\u0441\u0442, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435 \u043c\u0435\u0440\u0435, \u0443\u043b\u043e\u0432\u0438\u0442\u044c \u0441\u043c\u044b\u0441\u043b \u0442\u0435\u043a\u0441\u0442\u0430. \u0422\u0430\u043a\u0436\u0435 \u0445\u043e\u0447\u0443 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0432 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u044b \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 <a href=\"https:\/\/github.com\/wb-08\/frequency_analysis\" rel=\"nofollow\">Github<\/a> .<\/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\/513926\/\"> https:\/\/habr.com\/ru\/post\/513926\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/513926\/\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u044f\u0437\u044b\u043a\u0430 \u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u0438\u043c \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438 \u0442\u0435\u043a\u0441\u0442\u0430. \u041a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442!<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/156\/3a5\/b06\/1563a5b062947245d3bc51ea5a164369.jpg\" alt=\"s1200\"><\/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-308035","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/308035","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=308035"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/308035\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=308035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=308035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=308035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}