Skip to content

Commit fe6f391

Browse files
[po] auto sync
1 parent c54f8bb commit fe6f391

3 files changed

Lines changed: 67 additions & 12 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "0.69%", "updated_at": "2025-11-19T20:22:00Z"}
1+
{"translation": "0.71%", "updated_at": "2025-11-20T18:32:32Z"}

tutorial/datastructures.mo

8.32 KB
Binary file not shown.

tutorial/datastructures.po

Lines changed: 66 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# python-doc bot, 2025
8+
# Dmitry Luschan, 2025
89
#
910
#, fuzzy
1011
msgid ""
1112
msgstr ""
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
2526
msgid "Data Structures"
26-
msgstr ""
27+
msgstr "Структуры данных"
2728

2829
#: ../../tutorial/datastructures.rst:7
2930
msgid ""
3031
"This chapter describes some things you've learned about already in more "
3132
"detail, and adds some new things as well."
3233
msgstr ""
34+
"Данная глава описывает некоторые вещи, которые вы уже изучили, более "
35+
"детально, и добавляет кое-что новое."
3336

3437
#: ../../tutorial/datastructures.rst:13
3538
msgid "More on Lists"
36-
msgstr ""
39+
msgstr "Подробнее о списках"
3740

3841
#: ../../tutorial/datastructures.rst:15
3942
msgid ""
4043
"The :ref:`list <typesseq-list>` data type has some more methods. Here are "
4144
"all of the methods of list objects:"
4245
msgstr ""
46+
"Тип данных :ref:`list <typesseq-list>` имеет ещё несколько методов. Здесь "
47+
"перечислены все методы списков:"
4348

4449
#: ../../tutorial/datastructures.rst:21
4550
msgid "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
4954
msgid ""
5055
"Extend the list by appending all the items from the iterable. Similar to "
5156
"``a[len(a):] = iterable``."
5257
msgstr ""
58+
"Расширить список, добавив все элементы из итерируемого объекта. Аналогично "
59+
"``a[len(a):] = iterable``."
5360

5461
#: ../../tutorial/datastructures.rst:34
5562
msgid ""
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)``."
5966
msgstr ""
67+
"Вставить элемент на определенную позицию. Первый аргумент — это индекс "
68+
"элемента, перед которым происходит вставка, таким образом ``a.insert(0, x)``"
69+
" поместит элемент в начало списка, а ``a.insert(len(a), x)`` эквивалентно "
70+
"``a.append(x)``."
6071

6172
#: ../../tutorial/datastructures.rst:42
6273
msgid ""
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."
6576
msgstr ""
77+
"Удалить первый элемент из списка, чьё значение равно *x*. Возбуждает "
78+
":exc:`ValueError` если такого элемента нет."
6679

6780
#: ../../tutorial/datastructures.rst:49
6881
msgid ""
@@ -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."
7386
msgstr ""
87+
"Удалить элемент в заданной позиции списка и вернуть его. Если индекс не "
88+
"указан, ``a.pop()`` удаляет и возвращает последний элемент списка. "
89+
"Возбуждает :exc:`IndexError`, если список пуст или индекс находится за "
90+
"пределами допустимого диапазона."
7491

7592
#: ../../tutorial/datastructures.rst:58
7693
msgid "Remove all items from the list. Similar to ``del a[:]``."
77-
msgstr ""
94+
msgstr "Удалить все элементы из списка. Аналогично ``del a[:]``."
7895

7996
#: ../../tutorial/datastructures.rst:64
8097
msgid ""
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."
83100
msgstr ""
101+
"Вернуть индекс (при нумерации с нуля) первого вхождения *x* в список. "
102+
"Возбуждает :exc:`ValueError`, если такого элемента в списке нет."
84103

85104
#: ../../tutorial/datastructures.rst:67
86105
msgid ""
@@ -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."
91110
msgstr ""
111+
"Необязательные аргументы *start* и *end* интерпретируются так же, как в "
112+
"срезах, и используются чтобы ограничить поиск конкретной "
113+
"подпоследовательностью списка. Возвращаемый индекс рассчитывается "
114+
"относительно начала полной последовательности, а не аргумента *start*."
92115

93116
#: ../../tutorial/datastructures.rst:76
94117
msgid "Return the number of times *x* appears in the list."
95-
msgstr ""
118+
msgstr "Вернуть количество раз, которое *x* появляется в списке."
96119

97120
#: ../../tutorial/datastructures.rst:82
98121
msgid ""
99122
"Sort the items of the list in place (the arguments can be used for sort "
100123
"customization, see :func:`sorted` for their explanation)."
101124
msgstr ""
125+
"Отсортировать элементы списка на месте (аргументы можно использовать для "
126+
"настройки сортировки, смотри :func:`sorted` для их пояснения)."
102127

103128
#: ../../tutorial/datastructures.rst:89
104129
msgid "Reverse the elements of the list in place."
105-
msgstr ""
130+
msgstr "Развернуть элементы списка на месте."
106131

107132
#: ../../tutorial/datastructures.rst:95
108133
msgid "Return a shallow copy of the list. Similar to ``a[:]``."
109-
msgstr ""
134+
msgstr "Вернуть неглубокую копию списка. Аналогично ``a[:]``."
110135

111136
#: ../../tutorial/datastructures.rst:98
112137
msgid "An example that uses most of the list methods::"
113-
msgstr ""
138+
msgstr "Пример, который использует большинство методов списка::"
114139

115140
#: ../../tutorial/datastructures.rst:100
116141
msgid ""
@@ -135,6 +160,26 @@ msgid ""
135160
">>> fruits.pop()\n"
136161
"'pear'"
137162
msgstr ""
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
140185
msgid ""
@@ -143,6 +188,10 @@ msgid ""
143188
"default ``None``. [#]_ This is a design principle for all mutable data "
144189
"structures in Python."
145190
msgstr ""
191+
"Вы могли заметить, что методы вроде ``insert``, ``remove`` или ``sort``, "
192+
"которые изменяют список, не выводят возвращаемого значения — они возвращают "
193+
"значение по умолчанию ``None``. [#]_ Такой принцип использовался при "
194+
"проектировании всех изменяемых структур данных в Python."
146195

147196
#: ../../tutorial/datastructures.rst:126
148197
msgid ""
@@ -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."
154203
msgstr ""
204+
"Еще одна вещь, на которую стоит обратить внимание — не все данные можно "
205+
"отсортировать или сравнить. Например, ``[None, 'hello', 10]`` невозможно "
206+
"отсортировать, поскольку целые числа нельзя сравнивать со строками, а "
207+
"``None`` нельзя сравнивать с другими типами. Кроме того, существуют типы "
208+
"данных, которые не имеют определённого отношения порядка. Например, ``3+4j <"
209+
" 5+7j`` не является допустимым сравнением."
155210

156211
#: ../../tutorial/datastructures.rst:137
157212
msgid "Using Lists as Stacks"
158-
msgstr ""
213+
msgstr "Использование списка в качестве стека"
159214

160215
#: ../../tutorial/datastructures.rst:142
161216
msgid ""

0 commit comments

Comments
 (0)