Python 文檔目錄?
- Python的新變化
- Python 3.7 有什么新變化
- 摘要 - 發(fā)布重點(diǎn)
- 新的特性
- PEP 563:延遲的標(biāo)注求值
- PEP 538: 傳統(tǒng) C 區(qū)域強(qiáng)制轉(zhuǎn)換
- PEP 540: 強(qiáng)制 UTF-8 運(yùn)行時(shí)模式
- PEP 553: 內(nèi)置的
breakpoint() - PEP 539: 用于線程局部存儲(chǔ)的新 C API
- PEP 562: 定制對(duì)模塊屬性的訪問
- PEP 564: 具有納秒級(jí)精度的新時(shí)間函數(shù)
- PEP 565: 在
__main__中顯示 DeprecationWarning - PEP 560: 對(duì)
typing模塊和泛型類型的核心支持 - PEP 552: 基于哈希值的 .pyc 文件
- PEP 545: Python 文檔翻譯
- 開發(fā)運(yùn)行時(shí)模式: -X dev
- 其他語言特性修改
- 新增模塊
- 改進(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
- xml.etree
- xmlrpc.server
- zipapp
- zipfile
- C API 的改變
- 構(gòu)建的改變
- 性能優(yōu)化
- 其他 CPython 實(shí)現(xiàn)的改變
- 已棄用的 Python 行為
- 已棄用的 Python 模塊、函數(shù)和方法
- 已棄用的 C API 函數(shù)和類型
- 平臺(tái)支持的移除
- API 與特性的移除
- 移除的模塊
- Windows 專屬的改變
- 移植到 Python 3.7
- Python 3.7.1 中的重要變化
- Python 3.7.2 中的重要變化
- Python 3.7.6 中的重要變化
- Python 3.7.10 中的重要變化
- Notable changes in Python 3.7.11
- Python 3.6 有什么新變化A
- 摘要 - 發(fā)布重點(diǎn)
- 新的特性
- PEP 498: 格式化的字符串文字
- PEP 526: 變量注釋的語法
- PEP 515: 數(shù)字文字中的下劃線。
- PEP 525: 異步生成器
- PEP 530: 異步推導(dǎo)
- PEP 487: 自定義類創(chuàng)建
- PEP 487: 描述器協(xié)議的增強(qiáng)
- PEP 519: 添加文件系統(tǒng)路徑協(xié)議
- PEP 495: 消除本地時(shí)間的歧義
- PEP 529: 將Windows文件系統(tǒng)編碼更改為UTF-8
- PEP 528: 將Windows控制臺(tái)編碼更改為UTF-8
- PEP 520: 保留類屬性定義順序
- PEP 468: 保留關(guān)鍵字參數(shù)順序
- 新的 dict 實(shí)現(xiàn)
- PEP 523: 向CPython 添加框架評(píng)估API
- PYTHONMALLOC 環(huán)境變量
- DTrace 和 SystemTap 探測(cè)支持
- 其他語言特性修改
- 新增模塊
- 改進(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)化
- 構(gò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 語法實(shí)現(xiàn)協(xié)程
- PEP 465 - 用于矩陣乘法的專用中綴運(yùn)算符
- PEP 448 - Additional Unpacking Generalizations
- PEP 461 - percent formatting support for bytes and bytearray
- PEP 484 - 類型提示
- 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
- 其他語言特性修改
- 新增模塊
- 改進(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
- 其他模塊級(jí)更改
- 性能優(yōu)化
- 構(gòu)建和 C API 的改變
- 棄用
- 移除
- 移植到Python 3.5
- Python 3.5.4 的顯著變化
- 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: 新的內(nèi)存視圖實(shí)現(xiàn)和緩沖協(xié)議文檔
- PEP 393: 靈活的字符串表示
- PEP 397: 適用于Windows的Python啟動(dòng)器
- PEP 3151: 重寫 OS 和 IO 異常的層次結(jié)構(gòu)
- PEP 380: 委托給子生成器的語法
- PEP 409: 清除異常上下文
- PEP 414: 顯式的Unicode文本
- PEP 3155: 類和函數(shù)的限定名稱
- PEP 412: Key-Sharing Dictionary
- PEP 362: 函數(shù)簽名對(duì)象
- PEP 421: 添加 sys.implementation
- Using importlib as the Implementation of Import
- 其他語言特性修改
- 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)化
- 構(gòu)建和 C API 的改變
- 棄用
- 移植到 Python 3.3
- Python 3.2 有什么新變化
- PEP 384: 定義穩(wěn)定的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
- 其他語言特性修改
- 新增,改進(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
- 多線程
- 性能優(yōu)化
- Unicode
- 編解碼器
- 文檔
- IDLE
- 代碼庫
- 構(gòu)建和 C API 的改變
- 移植到 Python 3.2
- Python 3.1 有什么新變化
- Python 3.0 有什么新變化
- Python 2.7 有什么新變化
- Python 2.x的未來
- Changes to the Handling of Deprecation Warnings
- Python 3.1 Features
- PEP 372: Adding an Ordered Dictionary to collections
- PEP 378: 千位分隔符的格式說明符
- 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
- 其他語言特性修改
- 新增和改進(jìn)的模塊
- 構(gòu)建和 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驗(yàn)證遷移工具
- New
make regen-allbuild target - Removal of
make touchbuild target
- 致謝
- Python 2.6 有什么新變化
- Python 3.0
- 開發(fā)過程的變化
- PEP 343: "with" 語句
- PEP 366: 從主模塊顯式相對(duì)導(dǎo)入
- PEP 370: 分用戶的 site-packages 目錄
- PEP 371: 多任務(wù)處理包
- PEP 3101: 高級(jí)字符串格式
- PEP 3105:
print改為函數(shù) - PEP 3110: 異常處理的變更
- PEP 3112: 字節(jié)字面值
- PEP 3116: 新 I/O 庫
- PEP 3118: 修改緩沖區(qū)協(xié)議
- PEP 3119: 抽象基類
- PEP 3127: 整型文字支持和語法
- PEP 3129: 類裝飾器
- PEP 3141: A Type Hierarchy for Numbers
- 其他語言特性修改
- 新增和改進(jìn)的模塊
- Deprecations and Removals
- 構(gòu)建和 C API 的改變
- 移植到Python 2.6
- 致謝
- Python 2.5 有什么新變化
- PEP 308: 條件表達(dá)式
- PEP 309: 部分功能應(yīng)用
- PEP 314: Python軟件包的元數(shù)據(jù) v1.1
- PEP 328: 絕對(duì)導(dǎo)入和相對(duì)導(dǎo)入
- PEP 338: 將模塊作為腳本執(zhí)行
- PEP 341: 統(tǒng)一 try/except/finally
- PEP 342: 生成器的新特性
- PEP 343: "with" 語句
- PEP 352: 異常作為新型的類
- PEP 353: 使用ssize_t作為索引類型
- PEP 357: '__index__' 方法
- 其他語言特性修改
- 新增,改進(jìn)和刪除的模塊
- 構(gòu)建和 C API 的改變
- 移植到Python 2.5
- 致謝
- Python 2.4 有什么新變化
- PEP 218: 內(nèi)置集合對(duì)象
- PEP 237: 統(tǒng)一長整數(shù)和整數(shù)
- PEP 289: 生成器表達(dá)式
- PEP 292: Simpler String Substitutions
- PEP 318: Decorators for Functions and Methods
- PEP 322: 反向迭代
- PEP 324: 新的子進(jìn)程模塊
- PEP 327: 十進(jìn)數(shù)據(jù)類型
- PEP 328: 多行導(dǎo)入
- PEP 331: Locale-Independent Float/String Conversions
- 其他語言特性修改
- 新增,改進(jìn)和棄用的模塊
- 構(gòu)建和 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壓縮包導(dǎo)入模塊
- PEP 277: Unicode file name support for Windows NT
- PEP 278: 通用換行支持
- PEP 279: enumerate()
- PEP 282: logging 包
- PEP 285: 布爾類型
- PEP 293: Codec Error Handling Callbacks
- PEP 301: Distutils的軟件包索引和元數(shù)據(jù)
- PEP 302: New Import Hooks
- PEP 305: 逗號(hào)分隔文件
- PEP 307: Pickle Enhancements
- 擴(kuò)展切片
- 其他語言特性修改
- 新增,改進(jìn)和棄用的模塊
- Pymalloc: A Specialized Object Allocator
- 構(gòu)建和 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 3.7.13 final
- Python 3.7.12 final
- Python 3.7.11 final
- Python 3.7.10 final
- Python 3.7.9 最終版
- Python 3.7.8 最終版
- Python 3.7.8 發(fā)布候選版 1
- Python 3.7.7 final
- Python 3.7.7 release candidate 1
- Python 3.7.6 final
- Python 3.7.6 release candidate 1
- Python 3.7.5 final
- Python 3.7.5 release candidate 1
- Python 3.7.4 final
- Python 3.7.4 release candidate 2
- Python 3.7.4 release candidate 1
- Python 3.7.3 最終版
- Python 3.7.3 發(fā)布候選版 1
- Python 3.7.2 最終版
- Python 3.7.2 發(fā)布候選版 1
- Python 3.7.1 最終版
- Python 3.7.1 RC 2版本
- Python 3.7.1 發(fā)布候選版 1
- Python 3.7.0 正式版
- Python 3.7.0 release candidate 1
- 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 RC 1
- 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 3.7 有什么新變化
- Python 教程
- 1. 課前甜點(diǎn)
- 2. 使用 Python 解釋器
- 3. Python 的非正式介紹
- 4. 其他流程控制工具
- 5. 數(shù)據(jù)結(jié)構(gòu)
- 6. 模塊
- 7. 輸入輸出
- 8. 錯(cuò)誤和異常
- 9. 類
- 10. 標(biāo)準(zhǔn)庫簡介
- 11. 標(biāo)準(zhǔn)庫簡介 —— 第二部分
- 12. 虛擬環(huán)境和包
- 13. 接下來?
- 14. 交互式編輯和編輯歷史
- 15. 浮點(diǎn)算術(shù):爭議和限制
- 16. 附錄
- Python安裝和使用
- 1. 命令行與環(huán)境
- 2. 在類Unix環(huán)境下使用Python
- 3. 在Windows上使用 Python
- 4. 在蘋果系統(tǒng)上使用 Python
- 5. 編輯器和集成開發(fā)環(huán)境
- Python語言參考
- 1. 概述
- 2. 詞法分析
- 3. 數(shù)據(jù)模型
- 4. 執(zhí)行模型
- 5. 導(dǎo)入系統(tǒng)
- 6. 表達(dá)式
- 7. 簡單語句
- 8. 復(fù)合語句
- 9. 最高層級(jí)組件
- 10. 完整的語法規(guī)范
- Python 標(biāo)準(zhǔn)庫
- 概述
- 內(nèi)置函數(shù)
- 內(nèi)置常量
- 內(nèi)置類型
- 內(nèi)置異常
- 文本處理服務(wù)
- 二進(jìn)制數(shù)據(jù)服務(wù)
- 數(shù)據(jù)類型
datetime--- 基本的日期和時(shí)間類型calendar--- 日歷相關(guān)函數(shù)collections--- 容器數(shù)據(jù)類型collections.abc--- 容器的抽象基類heapq--- 堆隊(duì)列算法bisect--- 數(shù)組二分查找算法array--- 高效的數(shù)值數(shù)組weakref--- 弱引用types--- 動(dòng)態(tài)類型創(chuàng)建和內(nèi)置類型名稱copy--- 淺層 (shallow) 和深層 (deep) 復(fù)制操作pprint--- 數(shù)據(jù)美化輸出reprlib--- 另一種repr()實(shí)現(xiàn)enum--- 枚舉類型支持
- 數(shù)字和數(shù)學(xué)模塊
- 函數(shù)式編程模塊
- 文件和目錄訪問
- 數(shù)據(jù)持久化
- 數(shù)據(jù)壓縮和存檔
- 文件格式
- 加密服務(wù)
- 通用操作系統(tǒng)服務(wù)
os--- 操作系統(tǒng)接口模塊io--- 處理流的核心工具time--- 時(shí)間的訪問和轉(zhuǎn)換argparse--- 命令行選項(xiàng)、參數(shù)和子命令解析器getopt--- C 風(fēng)格的命令行選項(xiàng)解析器- 模塊
logging--- Python 的日志記錄工具 logging.config--- 日志記錄配置logging.handlers--- 日志處理getpass--- 便攜式密碼輸入工具curses--- 終端字符單元顯示的處理curses.textpad--- 用于 curses 程序的文本輸入控件curses.ascii--- 用于 ASCII 字符的工具curses.panel--- curses 的 panel 棧擴(kuò)展platform--- 獲取底層平臺(tái)的標(biāo)識(shí)數(shù)據(jù)errno--- 標(biāo)準(zhǔn) errno 系統(tǒng)符號(hào)ctypes--- Python 的外部函數(shù)庫- ctypes 教程
- 載入動(dòng)態(tài)連接庫
- 操作導(dǎo)入的動(dòng)態(tài)鏈接庫中的函數(shù)
- 調(diào)用函數(shù)
- 基礎(chǔ)數(shù)據(jù)類型
- 調(diào)用函數(shù),繼續(xù)
- 使用自定義的數(shù)據(jù)類型調(diào)用函數(shù)
- 指定必選參數(shù)的類型(函數(shù)原型)
- 返回類型
- 傳遞指針(或者傳遞引用)
- 結(jié)構(gòu)體和聯(lián)合
- 結(jié)構(gòu)體/聯(lián)合 字段對(duì)齊及字節(jié)順序
- 結(jié)構(gòu)體和聯(lián)合中的位域
- 數(shù)組
- 指針
- 類型強(qiáng)制轉(zhuǎn)換
- 不完整類型
- 回調(diào)函數(shù)
- 訪問 dll 中導(dǎo)出的值
- 意外
- 變長數(shù)據(jù)類型
- ctypes 參考手冊(cè)
- ctypes 教程
- 并發(fā)執(zhí)行
threading--- 基于線程的并行multiprocessing--- 基于進(jìn)程的并行concurrent包concurrent.futures--- 啟動(dòng)并行任務(wù)subprocess--- 子進(jìn)程管理sched--- 事件調(diào)度器queue--- 一個(gè)同步的隊(duì)列類_thread--- 底層多線程 API_dummy_thread---_thread的替代模塊dummy_threading--- 可直接替代threading模塊。
contextvars上下文變量- 網(wǎng)絡(luò)和進(jìn)程間通信
asyncio--- 異步 I/Osocket--- 底層網(wǎng)絡(luò)接口ssl--- 套接字對(duì)象的TLS/SSL封裝select--- Waiting for I/O 完成selectors--- 高級(jí) I/O 復(fù)用庫asyncore--- 異步socket處理器asynchat--- 異步 socket 指令/響應(yīng) 處理器signal--- 設(shè)置異步事件處理程序mmap--- 內(nèi)存映射文件支持
- 互聯(lián)網(wǎng)數(shù)據(jù)處理
email--- 電子郵件與 MIME 處理包email.message: 表示一封電子郵件信息email.parser: 解析電子郵件信息email.generator: 生成 MIME 文檔email.policy: 策略對(duì)象email.errors: 異常和缺陷類email.headerregistry: 自定義標(biāo)頭對(duì)象email.contentmanager: 管理 MIME 內(nèi)容email: 示例email.message.Message: 使用compat32API 來表示電子郵件消息email.mime: 從頭創(chuàng)建電子郵件和 MIME 對(duì)象email.header: 國際化標(biāo)頭email.charset: 表示字符集email.encoders: 編碼器email.utils: 其他工具email.iterators: 迭代器
json--- JSON 編碼和解碼器mailcap--- Mailcap 文件處理mailbox--- 操作多種格式的郵箱mimetypes--- 映射文件夾到 MIME 類型base64--- Base16, Base32, Base64, Base85 數(shù)據(jù)編碼binhex--- 對(duì)binhex4文件進(jìn)行編碼和解碼binascii--- 二進(jìn)制和 ASCII 碼互轉(zhuǎn)quopri--- 編碼與解碼經(jīng)過 MIME 轉(zhuǎn)碼的可打印數(shù)據(jù)uu--- 對(duì) uuencode 文件進(jìn)行編碼與解碼
- 結(jié)構(gòu)化標(biāo)記處理工具
html--- 超文本標(biāo)記語言支持html.parser--- 簡單的 HTML 和 XHTML 解析器html.entities--- HTML 一般實(shí)體的定義- XML處理模塊
xml.etree.ElementTree--- ElementTree XML APIxml.dom--- 文檔對(duì)象模型 APIxml.dom.minidom--- 最小化的 DOM 實(shí)現(xiàn)xml.dom.pulldom--- 支持構(gòu)建部分 DOM 樹xml.sax--- 支持 SAX2 解析器xml.sax.handler--- SAX 處理程序的基類xml.sax.saxutils--- SAX 工具集xml.sax.xmlreader--- 用于 XML 解析器的接口xml.parsers.expat--- 使用 Expat 的快速 XML 解析
- 互聯(lián)網(wǎng)協(xié)議和支持
webbrowser--- 方便的Web瀏覽器控制器cgi--- 通用網(wǎng)關(guān)接口支持cgitb--- 用于 CGI 腳本的回溯管理器wsgiref--- WSGI 工具和引用的實(shí)現(xiàn)urllib--- URL 處理模塊urllib.request--- 用于打開 URL 的可擴(kuò)展庫- Request 對(duì)象
- OpenerDirector 對(duì)象
- BaseHandler 對(duì)象
- HTTPRedirectHandler 對(duì)象
- HTTPCookieProcessor 對(duì)象
- ProxyHandler 對(duì)象
- HTTPPasswordMgr 對(duì)象
- HTTPPasswordMgrWithPriorAuth 對(duì)象
- AbstractBasicAuthHandler 對(duì)象
- HTTPBasicAuthHandler 對(duì)象
- ProxyBasicAuthHandler 對(duì)象
- AbstractDigestAuthHandler 對(duì)象
- HTTPDigestAuthHandler 對(duì)象
- ProxyDigestAuthHandler 對(duì)象
- HTTPHandler 對(duì)象
- HTTPSHandler 對(duì)象
- FileHandler 對(duì)象
- DataHandler 對(duì)象
- FTPHandler 對(duì)象
- CacheFTPHandler 對(duì)象
- UnknownHandler 對(duì)象
- HTTPErrorProcessor 對(duì)象
- 例子
- 已停用的接口
urllib.request的限制
urllib.response--- urllib 使用的 Response 類urllib.parse用于解析 URLurllib.error--- urllib.request 引發(fā)的異常類urllib.robotparser--- robots.txt 語法分析程序http--- HTTP 模塊http.client--- HTTP 協(xié)議客戶端ftplib--- FTP 協(xié)議客戶端poplib--- POP3 協(xié)議客戶端imaplib--- IMAP4 協(xié)議客戶端nntplib--- NNTP 協(xié)議客戶端smtplib---SMTP協(xié)議客戶端smtpd--- SMTP 服務(wù)器telnetlib-- Telnet 客戶端uuid--- RFC 4122 定義的UUID對(duì)象socketserver--- 用于網(wǎng)絡(luò)服務(wù)器的框架http.server--- HTTP 服務(wù)器http.cookies--- HTTP狀態(tài)管理http.cookiejar—— HTTP 客戶端的 Cookie 處理xmlrpc--- XMLRPC 服務(wù)端與客戶端模塊xmlrpc.client--- XML-RPC 客戶端訪問xmlrpc.server--- 基本 XML-RPC 服務(wù)器ipaddress--- IPv4/IPv6 操作庫
- 多媒體服務(wù)
- 國際化
- 程序框架
- Tk圖形用戶界面(GUI)
- 開發(fā)工具
typing--- 類型標(biāo)注支持pydoc--- 文檔生成器和在線幫助系統(tǒng)doctest--- 測(cè)試交互性的Python示例unittest--- 單元測(cè)試框架unittest.mock--- 模擬對(duì)象庫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 代碼轉(zhuǎn)為 Python 3 代碼
test--- Python回歸測(cè)試包test.support--- Utilities for the Python test suitetest.support.script_helper--- Utilities for the Python execution tests
- 調(diào)試和分析
- 軟件打包和分發(fā)
- Python運(yùn)行時(shí)服務(wù)
sys--- 系統(tǒng)相關(guān)的參數(shù)和函數(shù)sysconfig--- Provide access to Python's configuration informationbuiltins--- 內(nèi)建對(duì)象__main__--- 頂層腳本環(huán)境warnings—— 警告信息的控制dataclasses--- 數(shù)據(jù)類contextlib--- 為with語句上下文提供的工具abc--- 抽象基類atexit--- 退出處理器traceback--- 打印或檢索堆?;厮?/a>__future__--- Future 語句定義gc--- 垃圾回收器接口inspect--- 檢查對(duì)象site—— 站點(diǎn)專屬的配置鉤子
- 自定義 Python 解釋器
- 導(dǎo)入模塊
- Python 語言服務(wù)
parser--- 訪問 Python 解析樹ast--- 抽象語法樹symtable——訪問編譯器的符號(hào)表symbol--- 與 Python 解析樹一起使用的常量token--- 與Python解析樹一起使用的常量keyword--- 檢驗(yàn)Python關(guān)鍵字tokenize-- 對(duì) Python 代碼使用的標(biāo)記解析器tabnanny--- 模糊縮進(jìn)檢測(cè)pyclbr--- Python 模塊瀏覽器支持py_compile--- 編譯 Python 源文件compileall--- Byte-compile Python librariesdis--- Python 字節(jié)碼反匯編器pickletools--- pickle 開發(fā)者工具集
- 雜項(xiàng)服務(wù)
- Windows系統(tǒng)相關(guān)模塊
- Unix 專有服務(wù)
posix--- 最常見的 POSIX 系統(tǒng)調(diào)用pwd--- 用戶密碼數(shù)據(jù)庫spwd—— shadow 密碼庫grp--- 組數(shù)據(jù)庫crypt—— 檢查 Unix 口令的函數(shù)termios--- POSIX 風(fēng)格的 tty 控制tty--- 終端控制功能pty--- 偽終端工具fcntl—— 系統(tǒng)調(diào)用fcntl和ioctlpipes--- 終端管道接口resource--- 資源使用信息nis--- Sun 的 NIS (黃頁) 接口- Unix syslog 庫例程
- 被取代的模塊
optparse--- 解析器的命令行選項(xiàng)- 背景
- 教程
- 參考指南
- 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
imp—— 由代碼內(nèi)部訪問 import 。
- 未創(chuàng)建文檔的模塊
- 擴(kuò)展和嵌入 Python 解釋器
- 推薦的第三方工具
- 不使用第三方工具創(chuàng)建擴(kuò)展
- 1. 使用 C 或 C++ 擴(kuò)展 Python
- 2. 自定義擴(kuò)展類型:教程
- 3. 定義擴(kuò)展類型:已分類主題
- 4. 構(gòu)建C/C++擴(kuò)展
- 5. 在Windows平臺(tái)編譯C和C++擴(kuò)展
- 在更大的應(yīng)用程序中嵌入 CPython 運(yùn)行時(shí)
- Python/C API 參考手冊(cè)
- 概述
- 穩(wěn)定的應(yīng)用程序二進(jìn)制接口
- The Very High Level Layer
- 引用計(jì)數(shù)
- 異常處理
- 工具
- 抽象對(duì)象層
- 具體的對(duì)象層
- 基本對(duì)象
- 數(shù)值對(duì)象
- 序列對(duì)象
- 容器對(duì)象
- 函數(shù)對(duì)象
- 其他對(duì)象
- 初始化,終結(jié)和線程
- 內(nèi)存管理
- 對(duì)象實(shí)現(xiàn)支持
- API 和 ABI 版本管理
- 分發(fā) Python 模塊
- 安裝 Python 模塊
- Python 常用指引
- 將 Python 2 代碼遷移到 Python 3
- 將擴(kuò)展模塊移植到 Python 3
- 用 Python 進(jìn)行 Curses 編程
- 實(shí)現(xiàn)描述器
- 函數(shù)式編程指引
- 日志 HOWTO
- 日志操作手冊(cè)
- 在多個(gè)模塊中記錄日志
- 在多個(gè)線程中記錄日志
- 多個(gè)日志處理器以及多種格式化器
- 在多個(gè)地方記錄日志
- 日志服務(wù)器配置示例
- 處理日志處理器的阻塞
- 通過網(wǎng)絡(luò)發(fā)送和接收日志
- 在日志記錄中添加上下文信息
- 從多個(gè)進(jìn)程記錄至單個(gè)文件
- 輪換日志文件
- 使用其他日志格式化方式
- 自定義
LogRecord - 子類化 QueueHandler - ZeroMQ 示例
- 子類化 QueueListener —— ZeroMQ 示例
- 基于字典進(jìn)行日志配置的示例
- 利用 rotator 和 namer 自定義日志輪換操作
- 更加詳細(xì)的多道處理示例
- 在發(fā)送給 SysLogHandler 的信息中插入一個(gè) BOM。
- 結(jié)構(gòu)化日志的實(shí)現(xiàn)代碼
- 利用
dictConfig()自定義 handler - 生效于整個(gè)應(yīng)用程序的格式化樣式
- 利用
dictConfig()定義過濾器 - 異常信息的自定義格式化
- 語音播報(bào)日志信息
- 緩沖日志消息并有條件地輸出它們
- 通過配置使用UTC (GMT) 格式化時(shí)間
- 使用上下文管理器的可選的日志記錄
- 命令行日志應(yīng)用起步
- Qt GUI 日志示例
- 正則表達(dá)式HOWTO
- 套接字編程指南
- 排序指南
- Unicode 指南
- HOWTO 使用 urllib 包獲取網(wǎng)絡(luò)資源
- Argparse 教程
- ipaddress模塊介紹
- Argument Clinic How-To
- The Goals Of Argument Clinic
- Basic Concepts And Usage
- Converting Your First Function
- Advanced Topics
- Symbolic default values
- Renaming the C functions and variables generated by Argument Clinic
- Converting functions using PyArg_UnpackTuple
- Optional Groups
- Using real Argument Clinic converters, instead of "legacy converters"
- Py_buffer
- Advanced converters
- Parameter default values
- The
NULLdefault value - Expressions specified as default values
- Using a return converter
- Cloning existing functions
- Calling Python code
- Using a "self converter"
- 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 檢測(cè)CPython
- Python 常見問題
- Python常見問題
- 編程常見問題
- 設(shè)計(jì)和歷史常見問題
- 為什么Python使用縮進(jìn)來分組語句?
- 為什么簡單的算術(shù)運(yùn)算得到奇怪的結(jié)果?
- 為什么浮點(diǎn)計(jì)算不準(zhǔn)確?
- 為什么Python字符串是不可變的?
- 為什么必須在方法定義和調(diào)用中顯式使用“self”?
- 為什么不能在表達(dá)式中賦值?
- 為什么Python對(duì)某些功能(例如list.index())使用方法來實(shí)現(xiàn),而其他功能(例如len(List))使用函數(shù)實(shí)現(xiàn)?
- 為什么 join()是一個(gè)字符串方法而不是列表或元組方法?
- 異常有多快?
- 為什么Python中沒有switch或case語句?
- 難道不能在解釋器中模擬線程,而非得依賴特定于操作系統(tǒng)的線程實(shí)現(xiàn)嗎?
- 為什么lambda表達(dá)式不能包含語句?
- 可以將Python編譯為機(jī)器代碼,C或其他語言嗎?
- Python如何管理內(nèi)存?
- 為什么CPython不使用更傳統(tǒng)的垃圾回收方案?
- CPython退出時(shí)為什么不釋放所有內(nèi)存?
- 為什么有單獨(dú)的元組和列表數(shù)據(jù)類型?
- 列表是如何在CPython中實(shí)現(xiàn)的?
- 字典是如何在CPython中實(shí)現(xiàn)的?
- 為什么字典key必須是不可變的?
- 為什么 list.sort() 沒有返回排序列表?
- 如何在Python中指定和實(shí)施接口規(guī)范?
- 為什么沒有g(shù)oto?
- 為什么原始字符串(r-strings)不能以反斜杠結(jié)尾?
- 為什么Python沒有屬性賦值的“with”語句?
- 為什么 if/while/def/class語句需要冒號(hào)?
- 為什么Python在列表和元組的末尾允許使用逗號(hào)?
- 代碼庫和插件 FAQ
- 擴(kuò)展/嵌入常見問題
- 可以使用C語言中創(chuàng)建自己的函數(shù)嗎?
- 可以使用C++語言中創(chuàng)建自己的函數(shù)嗎?
- C很難寫,有沒有其他選擇?
- 如何在 C 中執(zhí)行任意 Python 語句?
- 如何在 C 中對(duì)任意 Python 表達(dá)式求值?
- 如何從Python對(duì)象中提取C的值?
- 如何使用Py_BuildValue()創(chuàng)建任意長度的元組?
- 如何從C調(diào)用對(duì)象的方法?
- 如何捕獲PyErr_Print()(或打印到stdout / stderr的任何內(nèi)容)的輸出?
- 如何從C訪問用Python編寫的模塊?
- 如何在 Python 中對(duì)接 C ++ 對(duì)象?
- 我使用Setup文件添加了一個(gè)模塊,為什么make失敗了?
- 如何調(diào)試擴(kuò)展?
- 我想在Linux系統(tǒng)上編譯一個(gè)Python模塊,但是缺少一些文件。為什么?
- 如何區(qū)分“輸入不完整”和“輸入無效”?
- 如何找到未定義的g++符號(hào)__builtin_new或__pure_virtual?
- 能否創(chuàng)建一個(gè)對(duì)象類,其中部分方法在C中實(shí)現(xiàn),而其他方法在Python中實(shí)現(xiàn)(例如通過繼承)?
- Python在Windows上的常見問題
- 圖形用戶界面(GUI)常見問題
- “為什么我的電腦上安裝了 Python ?”
- 術(shù)語對(duì)照表
- 文檔說明
- 解決 Bug
- Copyright
- 歷史和許可證
