Logo

上一个主题

内置异常

下一个主题

string ---常用字符串操作

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.10.0a4 Documentation »
  • python标准库 »
  • 文本处理服务
  • |

文本处理服务¶

本章描述的模块提供了广泛的字符串操作操作和其他文本处理服务。

这个 codecs 模块描述如下 二进制数据服务 也与文本处理高度相关。此外,请参见有关python内置字符串类型的文档 文本序列类型--- str .

  • string ---常用字符串操作
    • 字符串常量
    • 自定义字符串格式
    • 格式字符串语法
      • 格式规范小型语言
      • 格式化实例
    • 模板字符串
    • 帮助程序函数
  • re ---正则表达式操作
    • 正则表达式语法
    • 模块内容
    • 正则表达式对象
    • 匹配对象
    • 正则表达式示例
      • 正在检查一对
      • 模拟scanf()
      • search()与match()的比较
      • 制作调用簿
      • 文本泛化
      • 查找所有副词
      • 找到所有副词及其位置
      • 原始字符串符号
      • 写标记器
  • difflib ---Delta计算助手
    • SequenceMatcher对象
    • SequenceMatcher示例
    • 不同对象
    • 不同的例子
    • difflib的命令行接口
  • textwrap ---文字环绕和填充
  • unicodedata ---Unicode数据库
  • stringprep ---互联网字符串准备
  • readline ---GNU读线接口
    • 初始化文件
    • 行缓冲器
    • 历史文件
    • 历史列表
    • 启动钩子
    • 完成
    • 例子
  • rlcompleter ---GNU读线完成功能
    • 完成对象

上一个主题

内置异常

下一个主题

string ---常用字符串操作

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.10.0a4 Documentation »
  • python标准库 »
  • 文本处理服务
  • |
© 版权 2001-2021, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

最后更新于 10月 23, 2021. Found a bug?
Created using Sphinx 4.2.0.