Python logo

上一主题

Built-in Exceptions

下一主题

string --- Common string operations

This page

  • Report a bug
  • Show source

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.15.0a0 Documentation »
  • The Python Standard Library »
  • Text Processing Services
  • |
  • |

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 --- Common string operations
    • String constants
    • Custom String Formatting
    • Format String Syntax
      • Format Specification Mini-Language
      • Format examples
    • Template strings ($-strings)
    • Helper functions
  • string.templatelib --- Support for template string literals
    • Template strings
    • Types
    • Helper functions
  • re --- Regular expression operations
    • Regular Expression Syntax
    • Module Contents
      • Flags
      • Functions
      • Exceptions
    • Regular Expression Objects
    • Match Objects
    • Regular Expression Examples
      • Checking for a Pair
      • Simulating scanf()
      • search() vs. match()
      • Making a Phonebook
      • Text Munging
      • Finding all Adverbs
      • Finding all Adverbs and their Positions
      • Raw String Notation
      • Writing a Tokenizer
  • difflib --- Helpers for computing deltas
    • SequenceMatcher Objects
    • SequenceMatcher Examples
    • Differ Objects
    • Differ Example
    • A command-line interface to difflib
    • ndiff example
  • 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
    • Example
  • rlcompleter --- Completion function for GNU readline

上一主题

Built-in Exceptions

下一主题

string --- Common string operations

This page

  • Report a bug
  • Show source
«

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python logo
  • Python »
  • 3.15.0a0 Documentation »
  • The Python Standard Library »
  • Text Processing Services
  • |
  • |
© 版权 2001 Python Software Foundation.
本页面采用 Python 软件基金会许可证第 2 版授权。
文档中的示例、代码片段及其他代码内容额外采用零条款 BSD 许可证授权。
更多信息请参阅《 历史与许可 》。

Python 软件基金会是一家非营利性公司。 请进行捐赠。

最后更新于10月 06, 2025 (08:21 UTC) 。 发现了错误?
使用Sphinx 8.2.3 创建。