Python logo

目錄

  • typing --- 支援型別提示
    • Python 型別系統的技術規範
    • 型別別名
    • NewType
    • 註釋 callable 物件
    • 泛型
    • 註釋元組 (tuple)
    • 類別物件的型別
    • Annotating generators and coroutines
    • 使用者定義泛型型別
    • Any 型別
    • 標稱 (nominal) 子型別 vs 結構子型別
    • 模組內容
      • 特別型別原語 (primitive)
        • 特別型別
        • 特別型式
        • Building generic types and type aliases
        • Other special directives
      • 協定
      • ABCs and Protocols for working with I/O
      • 函式與裝飾器
      • Introspection helpers
      • 常數
      • 棄用的別名
        • 內建型別的別名
        • collections 中型別的別名
        • Aliases to other concrete types
        • collections.abc 中容器 ABC 的別名