<sup id="e6wws"></sup>
  • <tfoot id="e6wws"><dl id="e6wws"></dl></tfoot>
  • <button id="e6wws"></button>
    <tfoot id="e6wws"><dl id="e6wws"></dl></tfoot>
    • <sup id="e6wws"></sup>
      <sup id="e6wws"><dl id="e6wws"></dl></sup>
      <sup id="e6wws"></sup>
      Logo

      上一個主題

      內(nèi)置異常

      下一個主題

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

      當前頁面

      • 提交 Bug
      • 顯示源碼

      導(dǎo)航

      • 索引
      • 模塊 |
      • 下一頁 |
      • 上一頁 |
      • python logo
      • Python ?
      • Python 3.12.0a0 文檔 ?
      • Python 標準庫 ?
      • 文本處理服務(wù)
      • |

      文本處理服務(wù)?

      本章介紹的模塊提供了廣泛的字符串操作和其他文本處理服務(wù)。

      在 二進制數(shù)據(jù)服務(wù) 之下描述的 codecs 模塊也與文本處理高度相關(guān)。 此外也請參閱 Python 內(nèi)置字符串類型的文檔 文本序列類型 --- str。

      • string --- 常見的字符串操作
        • 字符串常量
        • 自定義字符串格式化
        • 格式字符串語法
          • 格式規(guī)格迷你語言
          • 格式示例
        • 模板字符串
        • 輔助函數(shù)
      • re --- 正則表達式操作
        • 正則表達式語法
        • 模塊內(nèi)容
          • Flags
          • Functions
          • Exceptions
        • 正則表達式對象 (正則對象)
        • 匹配對象
        • 正則表達式例子
          • 檢查對子
          • 模擬 scanf()
          • search() vs. match()
          • 制作一個電話本
          • 文字整理
          • 查找所有副詞
          • 查找所有的副詞及其位置
          • 原始字符串標記
          • 寫一個詞法分析器
      • difflib --- 計算差異的輔助工具
        • SequenceMatcher 對象
        • SequenceMatcher 的示例
        • Differ 對象
        • Differ 示例
        • difflib 的命令行接口
      • textwrap --- 文本自動換行與填充
      • unicodedata --- Unicode 數(shù)據(jù)庫
      • stringprep --- 因特網(wǎng)字符串預(yù)備
      • readline --- GNU readline 接口
        • 初始化文件
        • 行緩沖區(qū)
        • 歷史文件
        • 歷史列表
        • 啟動鉤子
        • Completion
        • 示例
      • rlcompleter --- GNU readline 的補全函數(shù)
        • Completer 對象

      上一個主題

      內(nèi)置異常

      下一個主題

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

      當前頁面

      • 提交 Bug
      • 顯示源碼
      ?

      導(dǎo)航

      • 索引
      • 模塊 |
      • 下一頁 |
      • 上一頁 |
      • python logo
      • Python ?
      • Python 3.12.0a0 文檔 ?
      • Python 標準庫 ?
      • 文本處理服務(wù)
      • |
      ? 版權(quán)所有 2001-2022, 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.

      最后更新于 5月 26, 2022. Found a bug?
      由 Sphinx 4.5.0創(chuàng)建。

      感谢您访问我们的网站,您可能还对以下资源感兴趣:

      青娱乐―极品视觉盛宴
    • <tfoot id="o8844"></tfoot>
      • <tfoot id="o8844"><dl id="o8844"></dl></tfoot>
      • <sup id="o8844"><dl id="o8844"></dl></sup>