导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.8.0a0 文档 »
  • Python 标准库 »
  • |

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. In addition, see the documentation for Python's built-in string type in Text Sequence Type --- str.

  • string --- 常见的字符串操作
    • 字符串常量
    • Custom String Formatting
    • Format String Syntax
      • Format Specification Mini-Language
      • Format examples
    • Template strings
    • Helper functions
  • re — 正则表达式操作
    • 正则表达式语法
    • 模块内容
    • 正则表达式对象 (正则对象)
    • 匹配对象
    • 正则表达式例子
      • 检查对子
      • 模拟 scanf()
      • search() vs. match()
      • 建立一个电话本
      • 文字整理
      • 找到所有副词
      • 找到所有副词和位置
      • 原始字符记法
      • 写一个词法分析器
  • difflib --- Helpers for computing deltas
    • SequenceMatcher Objects
    • SequenceMatcher Examples
    • Differ Objects
    • Differ Example
    • A command-line interface to difflib
  • textwrap --- Text wrapping and filling
  • unicodedata --- Unicode Database
  • stringprep --- Internet String Preparation
  • readline --- GNU readline interface
    • Init file
    • Line buffer
    • History file
    • History list
    • Startup hooks
    • Completion
    • 示例
  • rlcompleter --- Completion function for GNU readline
    • Completer Objects

上一个主题

Built-in Exceptions

下一个主题

string --- 常见的字符串操作

本页

  • 提交 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.8.0a0 文档 »
  • Python 标准库 »
  • |
© 版权所有 2001-2019, Python Software Foundation.
Python 软件基金会是一个非盈利组织。 请捐助。

最后更新于 2月 11, 2019. Found a bug?
使用Sphinx1.8.1 创建。