Python 文檔目錄?
- Python的新變化
- What's New In Python 3.12
- What's New In Python 3.11
- Summary -- Release highlights
- New Features
- New Features Related to Type Hints
- Other Language Changes
- Other CPython Implementation Changes
- New Modules
- Improved Modules
- Optimizations
- Faster CPython
- CPython bytecode changes
- Deprecated
- Pending Removal in Python 3.12
- Removed
- Porting to Python 3.11
- Build Changes
- C API Changes
- Python 3.10 有什么新變化
- 摘要 -- 發(fā)布重點(diǎn)
- 新的特性
- 有關(guān)類(lèi)型提示的新增特性
- 其他語(yǔ)言特性修改
- 新增模塊
- 改進(jìn)的模塊
- asyncio
- argparse
- array
- asynchat、asyncore 和 smtpd
- base64
- bdb
- bisect
- 編碼器
- collections.abc
- contextlib
- curses
- dataclasses
- distutils
- doctest
- encodings
- enum
- fileinput
- faulthandler
- gc
- glob
- hashlib
- hmac
- IDLE 與 idlelib
- importlib.metadata
- inspect
- itertools
- linecache
- os
- os.path
- pathlib
- 平臺
- pprint
- py_compile
- pyclbr
- shelve
- statistics
- site
- socket
- ssl
- sqlite3
- sys
- _thread
- threading
- traceback
- types
- typing
- unittest
- urllib.parse
- xml
- zipimport
- 性能優(yōu)化
- 棄用
- 移除
- 移植到 Python 3.10
- CPython 字節碼的改變
- 編譯版的變化
- C API 的變化
- Python 3.9 有什么新變化
- Python 3.8 有什么新變化
- 摘要 -- 發(fā)布重點(diǎn)
- 新的特性
- 其他語(yǔ)言特性修改
- 新增模塊
- 改進(jìn)的模塊
- ast
- asyncio
- builtins
- collections
- cProfile
- csv
- curses
- ctypes
- datetime
- functools
- gc
- gettext
- gzip
- IDLE 與 idlelib
- inspect
- io
- itertools
- json.tool
- logging
- math
- mmap
- multiprocessing
- os
- os.path
- pathlib
- pickle
- plistlib
- pprint
- py_compile
- shlex
- shutil
- socket
- ssl
- statistics
- sys
- tarfile
- threading
- tokenize
- tkinter
- time
- typing
- unicodedata
- unittest
- venv
- weakref
- xml
- xmlrpc
- 性能優(yōu)化
- 構建和 C API 的改變
- 棄用
- API 與特性的移除
- 移植到 Python 3.8
- Python 3.8.1 中的重要變化
- Python 3.8.8 中的重要變化
- Python 3.8.12 中的重要變化
- Python 3.7 有什么新變化
- 摘要 - 發(fā)布重點(diǎn)
- 新的特性
- PEP 563:延遲的標注求值
- PEP 538: 傳統 C 區域強制轉換
- PEP 540: 強制 UTF-8 運行時(shí)模式
- PEP 553: 內置的
breakpoint()
- PEP 539: 用于線(xiàn)程局部存儲的新 C API
- PEP 562: 定制對模塊屬性的訪(fǎng)問(wèn)
- PEP 564: 具有納秒級精度的新時(shí)間函數
- PEP 565: 在
__main__
中顯示 DeprecationWarning - PEP 560: 對
typing
模塊和泛型類(lèi)型的核心支持 - PEP 552: 基于哈希值的 .pyc 文件
- PEP 545: Python 文檔翻譯
- Python 開(kāi)發(fā)模式 (-X dev)
- 其他語(yǔ)言特性修改
- 新增模塊
- 改進(jìn)的模塊
- argparse
- asyncio
- binascii
- calendar
- collections
- compileall
- concurrent.futures
- contextlib
- cProfile
- crypt
- datetime
- dbm
- decimal
- dis
- distutils
- enum
- functools
- gc
- hmac
- http.client
- http.server
- idlelib 與 IDLE
- importlib
- io
- ipaddress
- itertools
- locale
- logging
- math
- mimetypes
- msilib
- multiprocessing
- os
- pathlib
- pdb
- py_compile
- pydoc
- queue
- re
- signal
- socket
- socketserver
- sqlite3
- ssl
- string
- subprocess
- sys
- time
- tkinter
- tracemalloc
- types
- unicodedata
- unittest
- unittest.mock
- urllib.parse
- uu
- uuid
- warnings
- xml.etree
- xmlrpc.server
- zipapp
- zipfile
- C API 的改變
- 構建的改變
- 性能優(yōu)化
- 其他 CPython 實(shí)現的改變
- 已棄用的 Python 行為
- 已棄用的 Python 模塊、函數和方法
- 已棄用的 C API 函數和類(lèi)型
- 平臺支持的移除
- API 與特性的移除
- 移除的模塊
- Windows 專(zhuān)屬的改變
- 移植到 Python 3.7
- Python 3.7.1 中的重要變化
- Python 3.7.2 中的重要變化
- Python 3.7.6 中的重要變化
- Python 3.7.10 中的重要變化
- Python 3.6 有什么新變化
- 摘要 -- 發(fā)布重點(diǎn)
- 新的特性
- PEP 498: 格式化字符串字面值
- PEP 526: 變量標注的語(yǔ)法
- PEP 515: 數字字面值中的下劃線(xiàn)。
- PEP 525: 異步生成器
- PEP 530: 異步推導式
- PEP 487: 更簡(jiǎn)單的自定義類(lèi)創(chuàng )建
- PEP 487: 描述器協(xié)議的增強
- PEP 519: 添加文件系統路徑協(xié)議
- PEP 495: 消除本地時(shí)間的歧義
- PEP 529: 將Windows文件系統編碼更改為UTF-8
- PEP 528: 將Windows控制臺編碼更改為UTF-8
- PEP 520: 保留類(lèi)屬性定義順序
- PEP 468: 保留關(guān)鍵字參數順序
- 新的 dict 實(shí)現
- PEP 523: 向CPython 添加框架評估API
- PYTHONMALLOC 環(huán)境變量
- DTrace 和 SystemTap 探測支持
- 其他語(yǔ)言特性修改
- 新增模塊
- 改進(jìn)的模塊
- array
- ast
- asyncio
- binascii
- cmath
- collections
- concurrent.futures
- contextlib
- datetime
- decimal
- distutils
- encodings
- enum
- faulthandler
- fileinput
- hashlib
- http.client
- idlelib 與 IDLE
- importlib
- inspect
- json
- logging
- math
- multiprocessing
- os
- pathlib
- pdb
- pickle
- pickletools
- pydoc
- random
- re
- readline
- rlcompleter
- shlex
- site
- sqlite3
- socket
- socketserver
- ssl
- statistics
- struct
- subprocess
- sys
- telnetlib
- time
- timeit
- tkinter
- 回溯
- tracemalloc
- typing
- unicodedata
- unittest.mock
- urllib.request
- urllib.robotparser
- venv
- warnings
- winreg
- winsound
- xmlrpc.client
- zipfile
- zlib
- 性能優(yōu)化
- 構建和 C API 的改變
- 其他改進(jìn)
- 棄用
- 移除
- 移植到Python 3.6
- Python 3.6.2 中的重要變化
- Python 3.6.4 中的重要變化
- Python 3.6.5 中的重要變化
- Python 3.6.7 中的重要變化
- Python 3.6.10 中的重要變化
- Notable changes in Python 3.6.13
- Python 3.5 有什么新變化
- 摘要 -- 發(fā)布重點(diǎn)
- 新的特性
- PEP 492 - 使用 async 和 await 語(yǔ)法實(shí)現協(xié)程
- PEP 465 - 用于矩陣乘法的專(zhuān)用中綴運算符
- PEP 448 - Additional Unpacking Generalizations
- PEP 461 - percent formatting support for bytes and bytearray
- PEP 484 - 類(lèi)型提示
- PEP 471 - os.scandir() function -- a better and faster directory iterator
- PEP 475: Retry system calls failing with EINTR
- PEP 479: Change StopIteration handling inside generators
- PEP 485: A function for testing approximate equality
- PEP 486: Make the Python Launcher aware of virtual environments
- PEP 488: Elimination of PYO files
- PEP 489: Multi-phase extension module initialization
- 其他語(yǔ)言特性修改
- 新增模塊
- 改進(jìn)的模塊
- argparse
- asyncio
- bz2
- cgi
- cmath
- code
- collections
- collections.abc
- compileall
- concurrent.futures
- configparser
- contextlib
- csv
- curses
- dbm
- difflib
- distutils
- doctest
- enum
- faulthandler
- functools
- glob
- gzip
- heapq
- http
- http.client
- idlelib 與 IDLE
- imaplib
- imghdr
- importlib
- inspect
- io
- ipaddress
- json
- linecache
- locale
- logging
- lzma
- math
- multiprocessing
- operator
- os
- pathlib
- pickle
- poplib
- re
- readline
- selectors
- shutil
- signal
- smtpd
- smtplib
- sndhdr
- socket
- ssl
- sqlite3
- subprocess
- sys
- sysconfig
- tarfile
- threading
- time
- timeit
- tkinter
- 回溯
- types
- unicodedata
- unittest
- unittest.mock
- urllib
- wsgiref
- xmlrpc
- xml.sax
- zipfile
- 其他模塊級更改
- 性能優(yōu)化
- 構建和 C API 的改變
- 棄用
- 移除
- 移植到Python 3.5
- Python 3.5.4 的顯著(zhù)變化
- Python 3.4 有什么新變化
- 摘要 - 發(fā)布重點(diǎn)
- 新的特性
- 新增模塊
- 改進(jìn)的模塊
- abc
- aifc
- argparse
- audioop
- base64
- collections
- colorsys
- contextlib
- dbm
- dis
- doctest
- filecmp
- functools
- gc
- glob
- hashlib
- hmac
- html
- http
- idlelib 與 IDLE
- importlib
- inspect
- ipaddress
- logging
- marshal
- mmap
- multiprocessing
- operator
- os
- pdb
- pickle
- plistlib
- poplib
- pprint
- pty
- pydoc
- re
- resource
- select
- shelve
- shutil
- smtpd
- smtplib
- socket
- sqlite3
- ssl
- stat
- struct
- subprocess
- sunau
- sys
- tarfile
- textwrap
- threading
- 回溯
- types
- urllib
- unittest
- venv
- wave
- weakref
- xml.etree
- zipfile
- CPython Implementation Changes
- 棄用
- 移除
- 移植到 Python 3.4
- 3.4.3 的變化
- Python 3.3 有什么新變化
- 摘要 -- 發(fā)布重點(diǎn)
- PEP 405: 虛擬環(huán)境
- PEP 420: 隱式命名空間包
- PEP 3118: 新的內存視圖實(shí)現和緩沖協(xié)議文檔
- PEP 393: 靈活的字符串表示
- PEP 397: 適用于Windows的Python啟動(dòng)器
- PEP 3151: 重寫(xiě) OS 和 IO 異常的層次結構
- PEP 380: 委托給子生成器的語(yǔ)法
- PEP 409: 清除異常上下文
- PEP 414: 顯式的Unicode文本
- PEP 3155: 類(lèi)和函數的限定名稱(chēng)
- PEP 412: Key-Sharing Dictionary
- PEP 362: 函數簽名對象
- PEP 421: 添加 sys.implementation
- Using importlib as the Implementation of Import
- 其他語(yǔ)言特性修改
- A Finer-Grained Import Lock
- Builtin functions and types
- 新增模塊
- 改進(jìn)的模塊
- abc
- array
- base64
- binascii
- bz2
- 編碼器
- collections
- contextlib
- crypt
- curses
- datetime
- decimal
- ftplib
- functools
- gc
- hmac
- http
- html
- imaplib
- inspect
- io
- itertools
- logging
- math
- mmap
- multiprocessing
- nntplib
- os
- pdb
- pickle
- pydoc
- re
- sched
- select
- shlex
- shutil
- signal
- smtpd
- smtplib
- socket
- socketserver
- sqlite3
- ssl
- stat
- struct
- subprocess
- sys
- tarfile
- tempfile
- textwrap
- threading
- time
- types
- unittest
- urllib
- webbrowser
- xml.etree.ElementTree
- zlib
- 性能優(yōu)化
- 構建和 C API 的改變
- 棄用
- 移植到 Python 3.3
- Python 3.2 有什么新變化
- PEP 384: 定義穩定的ABI
- PEP 389: Argparse 命令行解析模塊
- PEP 391: 基于字典的日志配置
- PEP 3148:
concurrent.futures
模塊 - PEP 3147: PYC 倉庫目錄
- PEP 3149: ABI Version Tagged .so Files
- PEP 3333: Python Web服務(wù)器網(wǎng)關(guān)接口v1.0.1
- 其他語(yǔ)言特性修改
- 新增,改進(jìn)和棄用的模塊
- elementtree
- functools
- itertools
- collections
- threading
- datetime 和 time
- math
- abc
- io
- reprlib
- logging
- csv
- contextlib
- decimal and fractions
- ftp
- popen
- select
- gzip 和 zipfile
- tarfile
- hashlib
- ast
- os
- shutil
- sqlite3
- html
- socket
- ssl
- nntp
- certificates
- imaplib
- http.client
- unittest
- random
- poplib
- asyncore
- tempfile
- inspect
- pydoc
- dis
- dbm
- ctypes
- site
- sysconfig
- pdb
- configparser
- urllib.parse
- mailbox
- turtledemo
- 多線(xiàn)程
- 性能優(yōu)化
- Unicode
- 編解碼器
- 文檔
- IDLE
- 代碼庫
- 構建和 C API 的改變
- 移植到 Python 3.2
- Python 3.1 有什么新變化
- Python 3.0 有什么新變化
- Python 2.7 有什么新變化
- Python 2.x的未來(lái)
- Changes to the Handling of Deprecation Warnings
- Python 3.1 Features
- PEP 372: Adding an Ordered Dictionary to collections
- PEP 378: 千位分隔符的格式說(shuō)明符
- PEP 389: The argparse Module for Parsing Command Lines
- PEP 391: Dictionary-Based Configuration For Logging
- PEP 3106: Dictionary Views
- PEP 3137: The memoryview Object
- 其他語(yǔ)言特性修改
- 新增和改進(jìn)的模塊
- 構建和 C API 的改變
- Other Changes and Fixes
- 移植到 Python 2.7
- New Features Added to Python 2.7 Maintenance Releases
- Two new environment variables for debug mode
- PEP 434: IDLE Enhancement Exception for All Branches
- PEP 466: Network Security Enhancements for Python 2.7
- PEP 477: Backport ensurepip (PEP 453) to Python 2.7
- PEP 476: Enabling certificate verification by default for stdlib http clients
- PEP 493:適用于Python 2.7 的 HTTPS 驗證遷移工具
- New
make regen-all
build target - Removal of
make touch
build target
- 致謝
- Python 2.6 有什么新變化
- Python 3.0
- 開(kāi)發(fā)過(guò)程的變化
- PEP 343: "with" 語(yǔ)句
- PEP 366: 從主模塊顯式相對導入
- PEP 370: 分用戶(hù)的 site-packages 目錄
- PEP 371: 多任務(wù)處理包
- PEP 3101: 高級字符串格式
- PEP 3105:
print
改為函數 - PEP 3110: 異常處理的變更
- PEP 3112: 字節字面值
- PEP 3116: 新 I/O 庫
- PEP 3118: 修改緩沖區協(xié)議
- PEP 3119: 抽象基類(lèi)
- PEP 3127: 整型文字支持和語(yǔ)法
- PEP 3129: 類(lèi)裝飾器
- PEP 3141: A Type Hierarchy for Numbers
- 其他語(yǔ)言特性修改
- 新增和改進(jìn)的模塊
- Deprecations and Removals
- 構建和 C API 的改變
- 移植到Python 2.6
- 致謝
- Python 2.5 有什么新變化
- PEP 308: 條件表達式
- PEP 309: 部分功能應用
- PEP 314: Python軟件包的元數據 v1.1
- PEP 328: 絕對導入和相對導入
- PEP 338: 將模塊作為腳本執行
- PEP 341: 統一 try/except/finally
- PEP 342: 生成器的新特性
- PEP 343: "with" 語(yǔ)句
- PEP 352: 異常作為新型的類(lèi)
- PEP 353: 使用ssize_t作為索引類(lèi)型
- PEP 357: '__index__' 方法
- 其他語(yǔ)言特性修改
- 新增,改進(jìn)和刪除的模塊
- 構建和 C API 的改變
- 移植到Python 2.5
- 致謝
- Python 2.4 有什么新變化
- PEP 218: 內置集合對象
- PEP 237: 統一長(cháng)整數和整數
- PEP 289: 生成器表達式
- PEP 292: Simpler String Substitutions
- PEP 318: Decorators for Functions and Methods
- PEP 322: 反向迭代
- PEP 324: 新的子進(jìn)程模塊
- PEP 327: 十進(jìn)制數據類(lèi)型
- PEP 328: 多行導入
- PEP 331: Locale-Independent Float/String Conversions
- 其他語(yǔ)言特性修改
- 新增,改進(jìn)和棄用的模塊
- 構建和 C API 的改變
- 移植到 Python 2.4
- 致謝
- Python 2.3 有什么新變化
- PEP 218: A Standard Set Datatype
- PEP 255: Simple Generators
- PEP 263: Source Code Encodings
- PEP 273: 從ZIP壓縮包導入模塊
- PEP 277: Unicode file name support for Windows NT
- PEP 278: 通用換行支持
- PEP 279: enumerate()
- PEP 282: logging 包
- PEP 285: 布爾類(lèi)型
- PEP 293: Codec Error Handling Callbacks
- PEP 301: Distutils的軟件包索引和元數據
- PEP 302: New Import Hooks
- PEP 305: 逗號分隔文件
- PEP 307: Pickle Enhancements
- 擴展切片
- 其他語(yǔ)言特性修改
- 新增,改進(jìn)和棄用的模塊
- Pymalloc: A Specialized Object Allocator
- 構建和 C API 的改變
- Other Changes and Fixes
- 移植到 Python 2.3
- 致謝
- Python 2.2 有什么新變化
- Python 2.1 有什么新變化
- 概述
- PEP 227: Nested Scopes
- PEP 236: __future__ Directives
- PEP 207: Rich Comparisons
- PEP 230: Warning Framework
- PEP 229: New Build System
- PEP 205: Weak References
- PEP 232: Function Attributes
- PEP 235: Importing Modules on Case-Insensitive Platforms
- PEP 217: Interactive Display Hook
- PEP 208: New Coercion Model
- PEP 241: Metadata in Python Packages
- 新增和改進(jìn)的模塊
- Other Changes and Fixes
- 致謝
- Python 2.0 有什么新變化
- 更新日志
- Python 下一版
- Python 3.11.0 beta 1
- Python 3.11.0 alpha 7
- Python 3.11.0 alpha 6
- Python 3.11.0 alpha 5
- Python 3.11.0 alpha 4
- Python 3.11.0 alpha 3
- Python 3.11.0 alpha 2
- Python 3.11.0 alpha 1
- Python 3.10.0 beta 1
- Python 3.10.0 alpha 7
- Python 3.10.0 alpha 6
- Python 3.10.0 alpha 5
- Python 3.10.0 alpha 4
- Python 3.10.0 alpha 3
- Python 3.10.0 alpha 2
- Python 3.10.0 alpha 1
- Python 3.9.0 beta 1
- Python 3.9.0 alpha 6
- Python 3.9.0 alpha 5
- Python 3.9.0 alpha 4
- Python 3.9.0 alpha 3
- Python 3.9.0 alpha 2
- Python 3.9.0 alpha 1
- Python 3.8.0 beta 1
- Python 3.8.0 alpha 4
- Python 3.8.0 alpha 3
- Python 3.8.0 alpha 2
- Python 3.8.0 alpha 1
- Python 3.7.0 正式版
- Python 3.7.0 rc1
- Python 3.7.0 beta 5
- Python 3.7.0 beta 4
- Python 3.7.0 beta 3
- Python 3.7.0 beta 2
- Python 3.7.0 beta 1
- Python 3.7.0 alpha 4
- Python 3.7.0 alpha 3
- Python 3.7.0 alpha 2
- Python 3.7.0 alpha 1
- Python 3.6.6 正式版
- Python 3.6.6 rc1
- Python 3.6.5 正式版
- Python 3.6.5 rc1
- Python 3.6.4 正式版
- Python 3.6.4 rc1
- Python 3.6.3 正式版
- Python 3.6.3 rc1
- Python 3.6.2 正式版
- Python 3.6.2 rc2
- Python 3.6.2 rc1
- Python 3.6.1 正式版
- Python 3.6.1 rc1
- Python 3.6.0 正式版
- Python 3.6.0 rc2
- Python 3.6.0 rc1
- Python 3.6.0 beta 4
- Python 3.6.0 beta 3
- Python 3.6.0 beta 2
- Python 3.6.0 beta 1
- Python 3.6.0 alpha 4
- Python 3.6.0 alpha 3
- Python 3.6.0 alpha 2
- Python 3.6.0 alpha 1
- Python 3.5.5 正式版
- Python 3.5.5 rc1
- Python 3.5.4 正式版
- Python 3.5.4 rc1
- Python 3.5.3 正式版
- Python 3.5.3 rc1
- Python 3.5.2 正式版
- Python 3.5.2 rc1
- Python 3.5.1 正式版
- Python 3.5.1 rc1
- Python 3.5.0 正式版
- Python 3.5.0 rc4
- Python 3.5.0 rc3
- Python 3.5.0 rc2
- Python 3.5.0 rc1
- Python 3.5.0 beta 4
- Python 3.5.0 beta 3
- Python 3.5.0 beta 2
- Python 3.5.0 beta 1
- Python 3.5.0 alpha 4
- Python 3.5.0 alpha 3
- Python 3.5.0 alpha 2
- Python 3.5.0 alpha 1
- Python 教程
- 1. 課前甜點(diǎn)
- 2. Python 解釋器
- 3. Python 速覽
- 4. 其他流程控制工具
- 5. 數據結構
- 6. 模塊
- 7. 輸入與輸出
- 8. 錯誤和異常
- 9. 類(lèi)
- 10. 標準庫簡(jiǎn)介
- 11. 標準庫簡(jiǎn)介 —— 第二部分
- 12. 虛擬環(huán)境和包
- 13. 接下來(lái)?
- 14. 交互式編輯和編輯歷史
- 15. 浮點(diǎn)算術(shù):爭議和限制
- 16. 附錄
- Python安裝和使用
- 1. 命令行與環(huán)境
- 2. 在類(lèi)Unix環(huán)境下使用Python
- 3. 配置 Python
- 4. 在Windows上使用 Python
- 5. Using Python on a Mac
- 6. 編輯器和集成開(kāi)發(fā)環(huán)境
- Python 語(yǔ)言參考手冊
- 1. 概述
- 2. 詞法分析
- 3. 數據模型
- 3.1. 對象、值與類(lèi)型
- 3.2. 標準類(lèi)型層級結構
- 3.3. 特殊方法名稱(chēng)
- 3.4. 協(xié)程
- 4. 執行模型
- 5. 導入系統
- 6. 表達式
- 7. 簡(jiǎn)單語(yǔ)句
- 8. 復合語(yǔ)句
- 9. 頂級組件
- 10. 完整的語(yǔ)法規范
- Python 標準庫
- 概述
- 內置函數
- 內置常量
- 內置類(lèi)型
- 邏輯值檢測
- 布爾運算 ---
and
,or
,not
- 比較運算
- 數字類(lèi)型 ---
int
,float
,complex
- 迭代器類(lèi)型
- 序列類(lèi)型 ---
list
,tuple
,range
- 文本序列類(lèi)型 ---
str
- 二進(jìn)制序列類(lèi)型 ---
bytes
,bytearray
,memoryview
- 集合類(lèi)型 ---
set
,frozenset
- 映射類(lèi)型 ---
dict
- 上下文管理器類(lèi)型
- 類(lèi)型注解的類(lèi)型 --- Generic Alias 、 Union
- 其他內置類(lèi)型
- 特殊屬性
- 內置異常
- 文本處理服務(wù)
- 二進(jìn)制數據服務(wù)
- 數據類(lèi)型
datetime
--- 基本日期和時(shí)間類(lèi)型zoneinfo
--- IANA 時(shí)區支持calendar
--- 日歷相關(guān)函數collections
--- 容器數據類(lèi)型collections.abc
--- 容器的抽象基類(lèi)heapq
--- 堆隊列算法bisect
--- 數組二分查找算法array
--- 高效的數值數組weakref
--- 弱引用types
--- 動(dòng)態(tài)類(lèi)型創(chuàng )建和內置類(lèi)型名稱(chēng)copy
--- 淺層 (shallow) 和深層 (deep) 復制操作pprint
--- 數據美化輸出reprlib
--- 另一種repr()
實(shí)現enum
--- 對枚舉的支持graphlib
--- 操作類(lèi)似圖的結構的功能
- 數字和數學(xué)模塊
- 函數式編程模塊
- 文件和目錄訪(fǎng)問(wèn)
- 數據持久化
- 數據壓縮和存檔
- 文件格式
- 加密服務(wù)
- 通用操作系統服務(wù)
os
--- 多種操作系統接口io
--- 處理流的核心工具time
--- 時(shí)間的訪(fǎng)問(wèn)和轉換argparse
--- 命令行選項、參數和子命令解析器getopt
--- C 風(fēng)格的命令行選項解析器logging
--- Python 的日志記錄工具logging.config
--- 日志記錄配置logging.handlers
--- 日志處理程序getpass
--- 便攜式密碼輸入工具curses
--- 終端字符單元顯示的處理curses.textpad
--- 用于 curses 程序的文本輸入控件curses.ascii
--- 用于 ASCII 字符的工具curses.panel
--- curses 的面板棧擴展platform
--- 獲取底層平臺的標識數據errno
--- 標準 errno 系統符號ctypes
--- Python 的外部函數庫
- 并發(fā)執行
threading
--- 基于線(xiàn)程的并行multiprocessing
--- 基于進(jìn)程的并行multiprocessing.shared_memory
--- 可從進(jìn)程直接訪(fǎng)問(wèn)的共享內存concurrent
包concurrent.futures
--- 啟動(dòng)并行任務(wù)subprocess
--- 子進(jìn)程管理sched
--- 事件調度器queue
--- 一個(gè)同步的隊列類(lèi)contextvars
--- 上下文變量_thread
--- 底層多線(xiàn)程 API
- 網(wǎng)絡(luò )和進(jìn)程間通信
asyncio
--- 異步 I/Osocket
--- 底層網(wǎng)絡(luò )接口ssl
--- 套接字對象的 TLS/SSL 包裝器select
--- 等待 I/O 完成selectors
--- 高級 I/O 復用庫signal
--- 設置異步事件處理程序mmap
--- 內存映射文件支持
- 互聯(lián)網(wǎng)數據處理
email
--- 電子郵件與 MIME 處理包email.message
: 表示一封電子郵件信息email.parser
: 解析電子郵件信息email.generator
: 生成 MIME 文檔email.policy
: Policy 對象email.errors
: 異常和缺陷類(lèi)email.headerregistry
: 自定義標頭對象email.contentmanager
: 管理 MIME 內容email
: 示例email.message.Message
: 使用compat32
API 來(lái)表示電子郵件消息email.mime
: 從頭創(chuàng )建電子郵件和 MIME 對象email.header
: 國際化標頭email.charset
: 表示字符集email.encoders
: 編碼器email.utils
: 其他工具email.iterators
: 迭代器
json
--- JSON 編碼和解碼器mailbox
--- 操作多種格式的郵箱mimetypes
--- 映射文件名到 MIME 類(lèi)型base64
--- Base16, Base32, Base64, Base85 數據編碼binascii
--- 二進(jìn)制和 ASCII 碼互轉quopri
--- 編碼與解碼經(jīng)過(guò) MIME 轉碼的可打印數據
- 結構化標記處理工具
html
--- 超文本標記語(yǔ)言支持html.parser
--- 簡(jiǎn)單的 HTML 和 XHTML 解析器html.entities
--- HTML 一般實(shí)體的定義- XML處理模塊
xml.etree.ElementTree
--- ElementTree XML APIxml.dom
--- 文檔對象模型 APIxml.dom.minidom
--- 最小化的 DOM 實(shí)現xml.dom.pulldom
--- 支持構建部分 DOM 樹(shù)xml.sax
--- 支持 SAX2 解析器xml.sax.handler
--- SAX 處理句柄的基類(lèi)xml.sax.saxutils
--- SAX 工具集xml.sax.xmlreader
--- 用于 XML 解析器的接口xml.parsers.expat
--- 使用 Expat 的快速 XML 解析
- 互聯(lián)網(wǎng)協(xié)議和支持
webbrowser
--- 方便的 Web 瀏覽器控制工具wsgiref
--- WSGI 工具和參考實(shí)現urllib
--- URL 處理模塊urllib.request
--- 用于打開(kāi) URL 的可擴展庫- Request 對象
- OpenerDirector 對象
- BaseHandler 對象
- HTTPRedirectHandler 對象
- HTTPCookieProcessor 對象
- ProxyHandler 對象
- HTTPPasswordMgr 對象
- HTTPPasswordMgrWithPriorAuth 對象
- AbstractBasicAuthHandler 對象
- HTTPBasicAuthHandler 對象
- ProxyBasicAuthHandler 對象
- AbstractDigestAuthHandler 對象
- HTTPDigestAuthHandler 對象
- ProxyDigestAuthHandler 對象
- HTTPHandler 對象
- HTTPSHandler 對象
- FileHandler 對象
- DataHandler 對象
- FTPHandler 對象
- CacheFTPHandler 對象
- UnknownHandler 對象
- HTTPErrorProcessor 對象
- 例子
- 已停用的接口
urllib.request
的限制
urllib.response
--- urllib 使用的 Response 類(lèi)urllib.parse
用于解析 URLurllib.error
--- urllib.request 引發(fā)的異常類(lèi)urllib.robotparser
--- robots.txt 語(yǔ)法分析程序http
--- HTTP 模塊http.client
--- HTTP 協(xié)議客戶(hù)端ftplib
--- FTP 協(xié)議客戶(hù)端poplib
--- POP3 協(xié)議客戶(hù)端imaplib
--- IMAP4 協(xié)議客戶(hù)端smtplib
--- SMTP 協(xié)議客戶(hù)端uuid
--- RFC 4122 定義的UUID對象socketserver
--- 用于網(wǎng)絡(luò )服務(wù)器的框架http.server
--- HTTP 服務(wù)器http.cookies
--- HTTP狀態(tài)管理http.cookiejar
—— HTTP 客戶(hù)端的 Cookie 處理xmlrpc
--- XMLRPC 服務(wù)端與客戶(hù)端模塊xmlrpc.client
--- XML-RPC 客戶(hù)端訪(fǎng)問(wèn)xmlrpc.server
--- 基本 XML-RPC 服務(wù)器ipaddress
--- IPv4/IPv6 操作庫
- 多媒體服務(wù)
- 國際化
- 程序框架
- Tk圖形用戶(hù)界面(GUI)
tkinter
—— Tcl/Tk 的 Python 接口tkinter.colorchooser
--- 顏色選擇對話(huà)框tkinter.font
--- Tkinter 字體封裝- Tkinter 對話(huà)框
tkinter.messagebox
--- Tkinter 消息提示tkinter.scrolledtext
--- 滾動(dòng)文字控件tkinter.dnd
--- 拖放操作支持tkinter.ttk
--- Tk 風(fēng)格的控件tkinter.tix
--- TK擴展包- IDLE
- 開(kāi)發(fā)工具
typing
--- 類(lèi)型提示支持pydoc
--- 文檔生成器和在線(xiàn)幫助系統- Python 開(kāi)發(fā)模式
- Python 開(kāi)發(fā)模式的效果
- ResourceWarning 示例
- 文件描述符錯誤示例
doctest
--- 測試交互性的Python示例unittest
--- 單元測試框架unittest.mock
--- 模擬對象庫unittest.mock
上手指南- 使用 mock
- Patch Decorators
- Further Examples
- Mocking chained calls
- Partial mocking
- Mocking a Generator Method
- Applying the same patch to every test method
- Mocking Unbound Methods
- Checking multiple calls with mock
- Coping with mutable arguments
- Nesting Patches
- Mocking a dictionary with MagicMock
- Mock subclasses and their attributes
- Mocking imports with patch.dict
- Tracking order of calls and less verbose call assertions
- More complex argument matching
- 2to3 - 自動(dòng)將 Python 2 代碼轉為 Python 3 代碼
test
--- Python回歸測試包test.support
--- Utilities for the Python test suitetest.support.socket_helper
--- Utilities for socket teststest.support.script_helper
--- Utilities for the Python execution teststest.support.bytecode_helper
--- Support tools for testing correct bytecode generationtest.support.threading_helper
--- Utilities for threading teststest.support.os_helper
--- Utilities for os teststest.support.import_helper
--- Utilities for import teststest.support.warnings_helper
--- Utilities for warnings tests
- 調試和分析
- 軟件打包和分發(fā)
- Python運行時(shí)服務(wù)
sys
--- 系統相關(guān)的參數和函數sysconfig
—— 提供對 Python 配置信息的訪(fǎng)問(wèn)支持builtins
--- 內建對象__main__
--- Top-level code environmentwarnings
—— 警告信息的控制dataclasses
--- 數據類(lèi)contextlib
--- 為with
語(yǔ)句上下文提供的工具abc
--- 抽象基類(lèi)atexit
--- 退出處理器traceback
—— 打印或讀取堆棧的跟蹤信息__future__
--- Future 語(yǔ)句定義gc
--- 垃圾回收器接口inspect
--- 檢查對象site
—— 指定域的配置鉤子
- 自定義 Python 解釋器
- 導入模塊
- Python 語(yǔ)言服務(wù)
ast
--- 抽象語(yǔ)法樹(shù)symtable
——訪(fǎng)問(wèn)編譯器的符號表token
--- 與Python解析樹(shù)一起使用的常量keyword
--- 檢驗Python關(guān)鍵字tokenize
--- 對 Python 代碼使用的標記解析器tabnanny
--- 模糊縮進(jìn)檢測pyclbr
--- Python 模塊瀏覽器支持py_compile
--- 編譯 Python 源文件compileall
--- Byte-compile Python librariesdis
--- Python 字節碼反匯編器pickletools
--- pickle 開(kāi)發(fā)者工具集
- Windows系統相關(guān)模塊
- Unix 專(zhuān)有服務(wù)
- 被取代的模塊
aifc
--- 讀寫(xiě) AIFF 和 AIFC 文件asynchat
--- 異步套接字指令/響應處理程序asyncore
--- 異步套接字處理器audioop
--- 處理原始音頻數據cgi
--- 通用網(wǎng)關(guān)接口支持cgitb
--- 用于 CGI 腳本的回溯管理器chunk
--- 讀取 IFF 分塊數據crypt
—— 驗證 Unix 口令的函數imghdr
--- 推測圖像類(lèi)型imp
—— 由代碼內部訪(fǎng)問(wèn) import 。mailcap
--- Mailcap 文件處理msilib
--- Read and write Microsoft Installer filesnis
--- Sun 的 NIS (黃頁(yè)) 接口nntplib
--- NNTP 協(xié)議客戶(hù)端optparse
--- 解析器的命令行選項- 背景
- 教程
- 參考指南
- Option Callbacks
- Defining a callback option
- How callbacks are called
- Raising errors in a callback
- Callback example 1: trivial callback
- Callback example 2: check option order
- Callback example 3: check option order (generalized)
- Callback example 4: check arbitrary condition
- Callback example 5: fixed arguments
- Callback example 6: variable arguments
- Extending
optparse
ossaudiodev
--- 訪(fǎng)問(wèn)兼容OSS的音頻設備pipes
--- 終端管道接口smtpd
--- SMTP 服務(wù)器sndhdr
--- 推測聲音文件的類(lèi)型spwd
—— shadow 密碼庫sunau
--- 讀寫(xiě) Sun AU 文件telnetlib
-- Telnet 客戶(hù)端uu
--- 對 uuencode 文件進(jìn)行編碼與解碼xdrlib
--- 編碼與解碼 XDR 數據
- Security Considerations
- 擴展和嵌入 Python 解釋器
- Python/C API 參考手冊
- 概述
- C API Stability
- The Very High Level Layer
- 引用計數
- 異常處理
- 工具
- 抽象對象層
- 具體的對象層
- 初始化,終結和線(xiàn)程
- Python初始化配置
- 內存管理
- 對象實(shí)現支持
- API 和 ABI 版本管理
- 分發(fā) Python 模塊
- 安裝 Python 模塊
- Python 常用指引
- 將 Python 2 代碼遷移到 Python 3
- 將擴展模塊移植到 Python 3
- 用 Python 進(jìn)行 Curses 編程
- 描述器使用指南
- Enum HOWTO
- Programmatic access to enumeration members and their attributes
- Duplicating enum members and values
- Ensuring unique enumeration values
- Using automatic values
- Iteration
- Comparisons
- Allowed members and attributes of enumerations
- Restricted Enum subclassing
- Pickling
- Functional API
- Derived Enumerations
- When to use
__new__()
vs.__init__()
- How are Enums different?
- Subclassing EnumType
- 函數式編程指引
- 日志常用指引
- 日志操作手冊
- 在多個(gè)模塊中記錄日志
- 在多個(gè)線(xiàn)程中記錄日志
- 多個(gè) handler 和多種 formatter
- 在多個(gè)地方記錄日志
- 日志配置服務(wù)器示例
- 處理日志 handler 的阻塞
- 通過(guò)網(wǎng)絡(luò )收發(fā)日志事件
- 在自己的輸出日志中添加上下文信息
- 從多個(gè)進(jìn)程記錄至單個(gè)文件
- 輪換日志文件
- 使用其他日志格式化方式
- 自定義
LogRecord
- 子類(lèi)化 QueueHandler - ZeroMQ 示例
- 子類(lèi)化 QueueListener —— ZeroMQ 示例
- 基于字典進(jìn)行日志配置的示例
- 利用 rotator 和 namer 自定義日志輪換操作
- 更加詳細的多道處理示例
- 在發(fā)送給 SysLogHandler 的信息中插入一個(gè) BOM。
- 結構化日志的實(shí)現代碼
- 利用
dictConfig()
自定義 handler - 生效于整個(gè)應用程序的格式化樣式
- 利用
dictConfig()
定義過(guò)濾器 - 異常信息的自定義格式化
- 語(yǔ)音播報日志信息
- 緩沖日志消息并有條件地輸出它們
- 通過(guò)配置使用UTC (GMT) 格式化時(shí)間
- 使用上下文管理器的可選的日志記錄
- 命令行日志應用起步
- Qt GUI 日志示例
- 理應避免的用法
- 正則表達式HOWTO
- 套接字編程指南
- 排序指南
- Unicode 指南
- 如何利用 urllib 包獲取網(wǎng)絡(luò )資源
- Argparse 教程
- ipaddress模塊介紹
- Argument Clinic 的用法
- Argument Clinic 的設計目標
- 基本概念和用法
- 函數的轉換
- 進(jìn)階
- Symbolic default values
- 對 Argument Clinic 生成的 C 函數和變量進(jìn)行重命名
- 函數轉換會(huì )用到 PyArg_UnpackTuple
- 可選參數組
- 采用真正的 Argument Clinic 轉換器,而不是 “傳統轉換器”
- Py_buffer
- 高級轉換器
- 參數的默認值
- 默認值
NULL
- 設為默認值的表達式
- 返回值轉換器
- 克隆已有的函數
- 調用 Python 代碼
- self 轉換器的用法
- “定義類(lèi)”轉換器
- Writing a custom converter
- Writing a custom return converter
- METH_O and METH_NOARGS
- tp_new and tp_init functions
- Changing and redirecting Clinic's output
- The #ifdef trick
- Using Argument Clinic in Python files
- 使用 DTrace 和 SystemTap 檢測CPython
- 對象注解屬性的最佳實(shí)踐
- Python 常見(jiàn)問(wèn)題
- Python常見(jiàn)問(wèn)題
- 編程常見(jiàn)問(wèn)題
- 設計和歷史常見(jiàn)問(wèn)題
- 為什么Python使用縮進(jìn)來(lái)分組語(yǔ)句?
- 為什么簡(jiǎn)單的算術(shù)運算得到奇怪的結果?
- 為什么浮點(diǎn)計算不準確?
- 為什么Python字符串是不可變的?
- 為什么必須在方法定義和調用中顯式使用“self”?
- 為什么不能在表達式中賦值?
- 為什么Python對某些功能(例如list.index())使用方法來(lái)實(shí)現,而其他功能(例如len(List))使用函數實(shí)現?
- 為什么 join() 是一個(gè)字符串方法而不是列表或元組方法?
- 異常有多快?
- 為什么Python中沒(méi)有switch或case語(yǔ)句?
- 難道不能在解釋器中模擬線(xiàn)程,而非得依賴(lài)特定于操作系統的線(xiàn)程實(shí)現嗎?
- 為什么lambda表達式不能包含語(yǔ)句?
- 可以將Python編譯為機器代碼,C或其他語(yǔ)言嗎?
- Python如何管理內存?
- 為什么CPython不使用更傳統的垃圾回收方案?
- CPython退出時(shí)為什么不釋放所有內存?
- 為什么有單獨的元組和列表數據類(lèi)型?
- 列表是如何在CPython中實(shí)現的?
- 字典是如何在CPython中實(shí)現的?
- 為什么字典key必須是不可變的?
- 為什么 list.sort() 沒(méi)有返回排序列表?
- 如何在Python中指定和實(shí)施接口規范?
- 為什么沒(méi)有g(shù)oto?
- 為什么原始字符串(r-strings)不能以反斜杠結尾?
- 為什么Python沒(méi)有屬性賦值的“with”語(yǔ)句?
- 生成器為什么不支持 with 語(yǔ)句?
- 為什么 if/while/def/class語(yǔ)句需要冒號?
- 為什么Python在列表和元組的末尾允許使用逗號?
- 代碼庫和插件 FAQ
- 擴展/嵌入常見(jiàn)問(wèn)題
- 可以使用 C 語(yǔ)言創(chuàng )建自己的函數嗎?
- 可以使用 C++ 語(yǔ)言創(chuàng )建自己的函數嗎?
- C很難寫(xiě),有沒(méi)有其他選擇?
- 如何在 C 中執行任意 Python 語(yǔ)句?
- 如何在 C 中對任意 Python 表達式求值?
- 如何從Python對象中提取C的值?
- 如何使用Py_BuildValue()創(chuàng )建任意長(cháng)度的元組?
- 如何從C調用對象的方法?
- 如何捕獲PyErr_Print()(或打印到stdout / stderr的任何內容)的輸出?
- 如何從C訪(fǎng)問(wèn)用Python編寫(xiě)的模塊?
- 如何在 Python 中對接 C ++ 對象?
- 我使用Setup文件添加了一個(gè)模塊,為什么make失敗了?
- 如何調試擴展?
- 我想在Linux系統上編譯一個(gè)Python模塊,但是缺少一些文件。為什么?
- 如何區分“輸入不完整”和“輸入無(wú)效”?
- 如何找到未定義的g++符號__builtin_new或__pure_virtual?
- 能否創(chuàng )建一個(gè)對象類(lèi),其中部分方法在C中實(shí)現,而其他方法在Python中實(shí)現(例如通過(guò)繼承)?
- Python在Windows上的常見(jiàn)問(wèn)題
- 圖形用戶(hù)界面(GUI)常見(jiàn)問(wèn)題
- “為什么我的電腦上安裝了 Python ?”
- 術(shù)語(yǔ)對照表
- 文檔說(shuō)明
- 處理錯誤
- 版權所有
- 歷史和許可證