文本处理服务 ¶
此章描述的模块提供广泛字符串操纵操作和其它文本处理服务。
The
codecs
模块的描述在
二进制数据服务
还与文本处理高度相关。此外,请参阅 Python 内置字符串类型文档编制在
文本序列类型 — str
.
-
string— 常见字符串操作 -
re— 正则表达式运算 -
difflib— 增量计算帮手 -
textwrap— 文字换行和填充 -
unicodedata— Unicode 数据库 -
stringprep— 互联网字符串预备 -
readline— GNU readline 接口 -
rlcompleter— 用于 GNU readline 的补全函数