55#
66# Translators:
77# python-doc bot, 2025
8+ # Dmitry Luschan, 2025
89#
910#, fuzzy
1011msgid ""
1112msgstr ""
1213"Project-Id-Version : Python 3.14\n "
1314"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2025-11-11 14:15 +0000\n "
15+ "POT-Creation-Date : 2025-11-19 19:26 +0000\n "
1516"PO-Revision-Date : 2025-09-16 00:02+0000\n "
16- "Last-Translator : python-doc bot , 2025\n "
17+ "Last-Translator : Dmitry Luschan , 2025\n "
1718"Language-Team : Russian (https://app.transifex.com/python-doc/teams/5390/ru/)\n "
1819"MIME-Version : 1.0\n "
1920"Content-Type : text/plain; charset=UTF-8\n "
@@ -23,46 +24,58 @@ msgstr ""
2324
2425#: ../../tutorial/datastructures.rst:5
2526msgid "Data Structures"
26- msgstr ""
27+ msgstr "Структуры данных "
2728
2829#: ../../tutorial/datastructures.rst:7
2930msgid ""
3031"This chapter describes some things you've learned about already in more "
3132"detail, and adds some new things as well."
3233msgstr ""
34+ "Данная глава описывает некоторые вещи, которые вы уже изучили, более "
35+ "детально, и добавляет кое-что новое."
3336
3437#: ../../tutorial/datastructures.rst:13
3538msgid "More on Lists"
36- msgstr ""
39+ msgstr "Подробнее о списках "
3740
3841#: ../../tutorial/datastructures.rst:15
3942msgid ""
4043"The :ref:`list <typesseq-list>` data type has some more methods. Here are "
4144"all of the methods of list objects:"
4245msgstr ""
46+ "Тип данных :ref:`list <typesseq-list>` имеет ещё несколько методов. Здесь "
47+ "перечислены все методы списков:"
4348
4449#: ../../tutorial/datastructures.rst:21
4550msgid "Add an item to the end of the list. Similar to ``a[len(a):] = [x]``."
46- msgstr ""
51+ msgstr "Добавить элемент в конец списка. Аналогично ``a[len(a):] = [x]``. "
4752
4853#: ../../tutorial/datastructures.rst:27
4954msgid ""
5055"Extend the list by appending all the items from the iterable. Similar to "
5156"``a[len(a):] = iterable``."
5257msgstr ""
58+ "Расширить список, добавив все элементы из итерируемого объекта. Аналогично "
59+ "``a[len(a):] = iterable``."
5360
5461#: ../../tutorial/datastructures.rst:34
5562msgid ""
5663"Insert an item at a given position. The first argument is the index of the "
5764"element before which to insert, so ``a.insert(0, x)`` inserts at the front "
5865"of the list, and ``a.insert(len(a), x)`` is equivalent to ``a.append(x)``."
5966msgstr ""
67+ "Вставить элемент на определенную позицию. Первый аргумент — это индекс "
68+ "элемента, перед которым происходит вставка, таким образом ``a.insert(0, x)``"
69+ " поместит элемент в начало списка, а ``a.insert(len(a), x)`` эквивалентно "
70+ "``a.append(x)``."
6071
6172#: ../../tutorial/datastructures.rst:42
6273msgid ""
6374"Remove the first item from the list whose value is equal to *x*. It raises "
6475"a :exc:`ValueError` if there is no such item."
6576msgstr ""
77+ "Удалить первый элемент из списка, чьё значение равно *x*. Возбуждает "
78+ ":exc:`ValueError` если такого элемента нет."
6679
6780#: ../../tutorial/datastructures.rst:49
6881msgid ""
@@ -71,16 +84,22 @@ msgid ""
7184"list. It raises an :exc:`IndexError` if the list is empty or the index is "
7285"outside the list range."
7386msgstr ""
87+ "Удалить элемент в заданной позиции списка и вернуть его. Если индекс не "
88+ "указан, ``a.pop()`` удаляет и возвращает последний элемент списка. "
89+ "Возбуждает :exc:`IndexError`, если список пуст или индекс находится за "
90+ "пределами допустимого диапазона."
7491
7592#: ../../tutorial/datastructures.rst:58
7693msgid "Remove all items from the list. Similar to ``del a[:]``."
77- msgstr ""
94+ msgstr "Удалить все элементы из списка. Аналогично ``del a[:]``. "
7895
7996#: ../../tutorial/datastructures.rst:64
8097msgid ""
8198"Return zero-based index of the first occurrence of *x* in the list. Raises a"
8299" :exc:`ValueError` if there is no such item."
83100msgstr ""
101+ "Вернуть индекс (при нумерации с нуля) первого вхождения *x* в список. "
102+ "Возбуждает :exc:`ValueError`, если такого элемента в списке нет."
84103
85104#: ../../tutorial/datastructures.rst:67
86105msgid ""
@@ -89,28 +108,34 @@ msgid ""
89108" list. The returned index is computed relative to the beginning of the full"
90109" sequence rather than the *start* argument."
91110msgstr ""
111+ "Необязательные аргументы *start* и *end* интерпретируются так же, как в "
112+ "срезах, и используются чтобы ограничить поиск конкретной "
113+ "подпоследовательностью списка. Возвращаемый индекс рассчитывается "
114+ "относительно начала полной последовательности, а не аргумента *start*."
92115
93116#: ../../tutorial/datastructures.rst:76
94117msgid "Return the number of times *x* appears in the list."
95- msgstr ""
118+ msgstr "Вернуть количество раз, которое *x* появляется в списке. "
96119
97120#: ../../tutorial/datastructures.rst:82
98121msgid ""
99122"Sort the items of the list in place (the arguments can be used for sort "
100123"customization, see :func:`sorted` for their explanation)."
101124msgstr ""
125+ "Отсортировать элементы списка на месте (аргументы можно использовать для "
126+ "настройки сортировки, смотри :func:`sorted` для их пояснения)."
102127
103128#: ../../tutorial/datastructures.rst:89
104129msgid "Reverse the elements of the list in place."
105- msgstr ""
130+ msgstr "Развернуть элементы списка на месте. "
106131
107132#: ../../tutorial/datastructures.rst:95
108133msgid "Return a shallow copy of the list. Similar to ``a[:]``."
109- msgstr ""
134+ msgstr "Вернуть неглубокую копию списка. Аналогично ``a[:]``. "
110135
111136#: ../../tutorial/datastructures.rst:98
112137msgid "An example that uses most of the list methods::"
113- msgstr ""
138+ msgstr "Пример, который использует большинство методов списка:: "
114139
115140#: ../../tutorial/datastructures.rst:100
116141msgid ""
@@ -135,6 +160,26 @@ msgid ""
135160">>> fruits.pop()\n"
136161"'pear'"
137162msgstr ""
163+ ">>> fruits = ['апельсин', 'яблоко', 'груша', 'банан', 'киви', 'яблоко', 'банан']\n"
164+ ">>> fruits.count('яблоко')\n"
165+ "2\n"
166+ ">>> fruits.count('мандарин')\n"
167+ "0\n"
168+ ">>> fruits.index('банан')\n"
169+ "3\n"
170+ ">>> fruits.index('банан', 4) # Найти следующий 'банан', начиная с позиции 4\n"
171+ "6\n"
172+ ">>> fruits.reverse()\n"
173+ ">>> fruits\n"
174+ "['банан', 'яблоко', 'киви', 'банан', 'груша', 'яблоко', 'апельсин']\n"
175+ ">>> fruits.append('виноград')\n"
176+ ">>> fruits\n"
177+ "['банан', 'яблоко', 'киви', 'банан', 'груша', 'яблоко', 'апельсин', 'виноград']\n"
178+ ">>> fruits.sort()\n"
179+ ">>> fruits\n"
180+ "['апельсин', 'банан', 'банан', 'виноград', 'груша', 'киви', 'яблоко', 'яблоко']\n"
181+ ">>> fruits.pop()\n"
182+ "'яблоко'"
138183
139184#: ../../tutorial/datastructures.rst:121
140185msgid ""
@@ -143,6 +188,10 @@ msgid ""
143188"default ``None``. [#]_ This is a design principle for all mutable data "
144189"structures in Python."
145190msgstr ""
191+ "Вы могли заметить, что методы вроде ``insert``, ``remove`` или ``sort``, "
192+ "которые изменяют список, не выводят возвращаемого значения — они возвращают "
193+ "значение по умолчанию ``None``. [#]_ Такой принцип использовался при "
194+ "проектировании всех изменяемых структур данных в Python."
146195
147196#: ../../tutorial/datastructures.rst:126
148197msgid ""
@@ -152,10 +201,16 @@ msgid ""
152201"other types. Also, there are some types that don't have a defined ordering "
153202"relation. For example, ``3+4j < 5+7j`` isn't a valid comparison."
154203msgstr ""
204+ "Еще одна вещь, на которую стоит обратить внимание — не все данные можно "
205+ "отсортировать или сравнить. Например, ``[None, 'hello', 10]`` невозможно "
206+ "отсортировать, поскольку целые числа нельзя сравнивать со строками, а "
207+ "``None`` нельзя сравнивать с другими типами. Кроме того, существуют типы "
208+ "данных, которые не имеют определённого отношения порядка. Например, ``3+4j <"
209+ " 5+7j`` не является допустимым сравнением."
155210
156211#: ../../tutorial/datastructures.rst:137
157212msgid "Using Lists as Stacks"
158- msgstr ""
213+ msgstr "Использование списка в качестве стека "
159214
160215#: ../../tutorial/datastructures.rst:142
161216msgid ""
0 commit comments