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

text.md

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

1> **Источник:** https://python-all.ru/3.7/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.7/library/codecs.html#module-codecs), описанный в разделе [Службы двоичных данных](https://python-all.ru/3.7/library/binary.html#binaryservices), также имеет прямое отношение к обработке текста. Дополнительно см. документацию по встроенному строковому типу Python в [Тип последовательности текста – str](https://python-all.ru/3.7/library/stdtypes.html#textseq).1213- [`string` – Общие операции со строками](https://python-all.ru/3.7/library/string.html)1415  - [Строковые константы](https://python-all.ru/3.7/library/string.html#string-constants)16  - [Пользовательское форматирование строк](https://python-all.ru/3.7/library/string.html#custom-string-formatting)17  - [Синтаксис строки форматирования](https://python-all.ru/3.7/library/string.html#format-string-syntax)1819    - [Мини-язык спецификации формата](https://python-all.ru/3.7/library/string.html#format-specification-mini-language)20    - [Примеры форматирования](https://python-all.ru/3.7/library/string.html#format-examples)21  - [Строки-шаблоны](https://python-all.ru/3.7/library/string.html#template-strings)22  - [Вспомогательные функции](https://python-all.ru/3.7/library/string.html#helper-functions)23- [`re` – Операции с регулярными выражениями](https://python-all.ru/3.7/library/re.html)2425  - [Синтаксис регулярных выражений](https://python-all.ru/3.7/library/re.html#regular-expression-syntax)26  - [Содержимое модуля](https://python-all.ru/3.7/library/re.html#module-contents)27  - [Объекты регулярных выражений](https://python-all.ru/3.7/library/re.html#regular-expression-objects)28  - [Объекты Match](https://python-all.ru/3.7/library/re.html#match-objects)29  - [Примеры регулярных выражений](https://python-all.ru/3.7/library/re.html#regular-expression-examples)3031    - [Проверка на пару](https://python-all.ru/3.7/library/re.html#checking-for-a-pair)32    - [Имитация scanf()](https://python-all.ru/3.7/library/re.html#simulating-scanf)33    - [search() и match()](https://python-all.ru/3.7/library/re.html#search-vs-match)34    - [Создание телефонного справочника](https://python-all.ru/3.7/library/re.html#making-a-phonebook)35    - [Преобразование текста](https://python-all.ru/3.7/library/re.html#text-munging)36    - [Поиск всех наречий](https://python-all.ru/3.7/library/re.html#finding-all-adverbs)37    - [Поиск всех наречий и их позиций](https://python-all.ru/3.7/library/re.html#finding-all-adverbs-and-their-positions)38    - [Сырая строковая нотация](https://python-all.ru/3.7/library/re.html#raw-string-notation)39    - [Написание токенизатора](https://python-all.ru/3.7/library/re.html#writing-a-tokenizer)40- [`difflib` – Вспомогательные функции для вычисления разностей](https://python-all.ru/3.7/library/difflib.html)4142  - [Объекты SequenceMatcher](https://python-all.ru/3.7/library/difflib.html#sequencematcher-objects)43  - [Примеры SequenceMatcher](https://python-all.ru/3.7/library/difflib.html#sequencematcher-examples)44  - [Объекты Differ](https://python-all.ru/3.7/library/difflib.html#differ-objects)45  - [Пример Differ](https://python-all.ru/3.7/library/difflib.html#differ-example)46  - [Интерфейс командной строки для difflib](https://python-all.ru/3.7/library/difflib.html#a-command-line-interface-to-difflib)47- [`textwrap` – Перенос и заполнение текста](https://python-all.ru/3.7/library/textwrap.html)48- [`unicodedata` – База данных Unicode](https://python-all.ru/3.7/library/unicodedata.html)49- [`stringprep` – Подготовка строк для интернета](https://python-all.ru/3.7/library/stringprep.html)50- [`readline` – Интерфейс GNU readline](https://python-all.ru/3.7/library/readline.html)5152  - [Файл инициализации](https://python-all.ru/3.7/library/readline.html#init-file)53  - [Буфер строки](https://python-all.ru/3.7/library/readline.html#line-buffer)54  - [Файл истории](https://python-all.ru/3.7/library/readline.html#history-file)55  - [Список истории](https://python-all.ru/3.7/library/readline.html#history-list)56  - [Перехватчики запуска](https://python-all.ru/3.7/library/readline.html#startup-hooks)57  - [Автодополнение](https://python-all.ru/3.7/library/readline.html#completion)58  - [Пример](https://python-all.ru/3.7/library/readline.html#example)59- [`rlcompleter` – Функция автодополнения для GNU readline](https://python-all.ru/3.7/library/rlcompleter.html)6061  - [Объекты Completer](https://python-all.ru/3.7/library/rlcompleter.html#completer-objects)62