Text Processing Services文本处理服务¶
The modules described in this chapter provide a wide range of string manipulation operations and other text processing services.本章介绍的模块提供了广泛的字符串操作操作和其他文本处理服务。
The 二进制数据服务中描述的codecs
module described under Binary Data Services is also highly relevant to text processing. codecs
模块也与文本处理高度相关。In addition, see the documentation for Python’s built-in string type in Text Sequence Type — str.此外,请参阅文本序列类型-str中Python内置字符串类型的文档。
string
—Common string operations常见字符串操作re
—Regular expression operations正则表达式运算difflib
—Helpers for computing deltas计算增量的助手textwrap
—Text wrapping and filling文本包装和填充unicodedata
—Unicode DatabaseUnicode数据库stringprep
—Internet String Preparation互联网字符串准备readline
—GNU readline interfaceGNU读线接口rlcompleter
—Completion function for GNU readlineGNU readline的完成函数