Документация Python неофициальный перевод

text.md

65 строк · 6.3 КБ · обычная страница · сырой текст · скачать

1> **Источник:** https://python-all.ru/3.13/library/text.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Службы обработки текста89Модули, описанные в этой главе, предоставляют широкий набор операций по работе со строками и других служб обработки текста.1011Модуль [`codecs`](https://python-all.ru/3.13/library/codecs.html#module-codecs), описанный в разделе [Службы двоичных данных](https://python-all.ru/3.13/library/binary.html#binaryservices), также имеет прямое отношение к обработке текста. Дополнительно см. документацию по встроенному строковому типу Python в [Тип последовательности текста – str](https://python-all.ru/3.13/library/stdtypes.html#textseq).1213- [`string` – Общие операции со строками](https://python-all.ru/3.13/library/string.html)1415  - [Строковые константы](https://python-all.ru/3.13/library/string.html#string-constants)16  - [Пользовательское форматирование строк](https://python-all.ru/3.13/library/string.html#custom-string-formatting)17  - [Синтаксис форматных строк](https://python-all.ru/3.13/library/string.html#format-string-syntax)1819    - [Мини-язык спецификации формата](https://python-all.ru/3.13/library/string.html#format-specification-mini-language)20    - [Примеры форматирования](https://python-all.ru/3.13/library/string.html#format-examples)21  - [Строки-шаблоны](https://python-all.ru/3.13/library/string.html#template-strings)22  - [Вспомогательные функции](https://python-all.ru/3.13/library/string.html#helper-functions)23- [`re` – Операции с регулярными выражениями](https://python-all.ru/3.13/library/re.html)2425  - [Синтаксис регулярных выражений](https://python-all.ru/3.13/library/re.html#regular-expression-syntax)26  - [Содержимое модуля](https://python-all.ru/3.13/library/re.html#module-contents)2728    - [Флаги](https://python-all.ru/3.13/library/re.html#flags)29    - [Функции](https://python-all.ru/3.13/library/re.html#functions)30    - [Исключения](https://python-all.ru/3.13/library/re.html#exceptions)31  - [Объекты регулярных выражений](https://python-all.ru/3.13/library/re.html#regular-expression-objects)32  - [Объекты Match](https://python-all.ru/3.13/library/re.html#match-objects)33  - [Примеры регулярных выражений](https://python-all.ru/3.13/library/re.html#regular-expression-examples)3435    - [Проверка на пару](https://python-all.ru/3.13/library/re.html#checking-for-a-pair)36    - [Имитация scanf()](https://python-all.ru/3.13/library/re.html#simulating-scanf)37    - [search() и match()](https://python-all.ru/3.13/library/re.html#search-vs-match)38    - [Создание телефонного справочника](https://python-all.ru/3.13/library/re.html#making-a-phonebook)39    - [Преобразование текста](https://python-all.ru/3.13/library/re.html#text-munging)40    - [Поиск всех наречий](https://python-all.ru/3.13/library/re.html#finding-all-adverbs)41    - [Поиск всех наречий и их позиций](https://python-all.ru/3.13/library/re.html#finding-all-adverbs-and-their-positions)42    - [Сырая строковая нотация](https://python-all.ru/3.13/library/re.html#raw-string-notation)43    - [Написание токенизатора](https://python-all.ru/3.13/library/re.html#writing-a-tokenizer)44- [`difflib` – Вспомогательные функции для вычисления разностей](https://python-all.ru/3.13/library/difflib.html)4546  - [Объекты SequenceMatcher](https://python-all.ru/3.13/library/difflib.html#sequencematcher-objects)47  - [Примеры SequenceMatcher](https://python-all.ru/3.13/library/difflib.html#sequencematcher-examples)48  - [Объекты Differ](https://python-all.ru/3.13/library/difflib.html#differ-objects)49  - [Пример Differ](https://python-all.ru/3.13/library/difflib.html#differ-example)50  - [Интерфейс командной строки для difflib](https://python-all.ru/3.13/library/difflib.html#a-command-line-interface-to-difflib)51  - [Пример ndiff](https://python-all.ru/3.13/library/difflib.html#ndiff-example)52- [`textwrap` – Перенос и заполнение текста](https://python-all.ru/3.13/library/textwrap.html)53- [`unicodedata` – База данных Unicode](https://python-all.ru/3.13/library/unicodedata.html)54- [`stringprep` – Подготовка строк для интернета](https://python-all.ru/3.13/library/stringprep.html)55- [`readline` – Интерфейс GNU readline](https://python-all.ru/3.13/library/readline.html)5657  - [Файл инициализации](https://python-all.ru/3.13/library/readline.html#init-file)58  - [Буфер строки](https://python-all.ru/3.13/library/readline.html#line-buffer)59  - [Файл истории](https://python-all.ru/3.13/library/readline.html#history-file)60  - [Список истории](https://python-all.ru/3.13/library/readline.html#history-list)61  - [Перехватчики запуска](https://python-all.ru/3.13/library/readline.html#startup-hooks)62  - [Автодополнение](https://python-all.ru/3.13/library/readline.html#completion)63  - [Пример](https://python-all.ru/3.13/library/readline.html#example)64- [`rlcompleter` – Функция автодополнения для GNU readline](https://python-all.ru/3.13/library/rlcompleter.html)65