Logo

      上一個(gè)主題

      內(nèi)置異常

      下一個(gè)主題

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

      當(dāng)前頁面

      • 提交 Bug
      • 顯示源碼

      導(dǎo)航

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

      文本處理服務(wù)?

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

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

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

      上一個(gè)主題

      內(nèi)置異常

      下一個(gè)主題

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

      當(dāng)前頁面

      • 提交 Bug
      • 顯示源碼
      ?

      導(dǎo)航

      • 索引
      • 模塊 |
      • 下一頁 |
      • 上一頁 |
      • python logo
      • Python ?
      • Python 3.12.0a0 文檔 ?
      • Python 標(biāo)準(zhǔn)庫 ?
      • 文本處理服務(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)建。

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

      久久国产免费观看精品3_少妇按摩推油舒服到高潮连连_亚洲色欲色欲www在线观看_国自产在线精品一本无码中文