Python logo

上個主題

內建的例外

下個主題

string --- Common string operations

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.11.8 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 文本處理 (Text Processing) 服務
  • |
  • |

文本處理 (Text Processing) 服務¶

本章節介紹的模組 (module) 提供了廣泛的字串操作與其他文本處理服務。

在 Binary Data Services 下所描述的 codecs 模組也與文本處理高度相關。另外也請參閱在 Text Sequence Type --- str 中所描述的 Python 內建字串型別。

  • string --- Common string operations
    • String constants
    • Custom String Formatting
    • Format String Syntax
      • Format Specification Mini-Language
      • Format examples
    • Template strings
    • Helper functions
  • re --- 正規表示式 (regular expression) 操作
    • Regular Expression Syntax
    • 模組內容
      • 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 物件
    • SequenceMatcher 範例
    • 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

上個主題

內建的例外

下個主題

string --- Common string operations

此頁面

  • 回報錯誤
  • 顯示原始碼
«

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.11.8 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 文本處理 (Text Processing) 服務
  • |
  • |
© 版權 2001-2024, 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.

最後更新於 Apr 02, 2024 (03:07 UTC)。 Found a bug?
使用 Sphinx 7.2.6 建立。