Python 3.11.6
發行日期:2023 年 10 月 2 日

這是 Python 3.11 的第六個維護版本。
Python 3.11.6 是 Python 程式語言的最新主要版本,其中包含許多新功能與效能優化。
與 3.10 相比,3.11 系列的主要新功能
Python 3.11 的部分主要新功能與變更包括:
一般變更
- PEP 657 -- 在追蹤回溯(Tracebacks)中加入精確的錯誤位置
- PEP 654 -- 例外群組(Exception Groups)與
except* - PEP 680 -- tomllib:標準函式庫中對 TOML 解析的支援
- gh-90908 -- 為 asyncio 引入任務群組(task groups)
- gh-34627 -- 正規表示式現已支援原子群組(Atomic grouping,
(?>...))與獨佔量詞(possessive quantifiers,*+, ++, ?+, {m,n}+)。 - Faster CPython 專案已經產生了一些令人振奮的成果。Python 3.11 比 Python 3.10 快上 10-60%。我們在標準基準測試套件上測得平均 1.22 倍的速度提升。詳情請參閱 Faster CPython。
型別提示(Typing)與相關語言變更
- PEP 673 -- Self 型別
- PEP 646 -- 可變參數泛型(Variadic Generics)
- PEP 675 -- 任意字串字面值型別(Arbitrary Literal String Type)
- PEP 655 -- 將個別 TypedDict 項目標記為必填或可選(potentially-missing)
- PEP 681 -- 資料類別轉換(Data Class Transforms)
更多資源
- 線上文件
- PEP 664, 3.11 發行時程表
- 至 https://github.com/python/cpython/issues 回報錯誤。
- 資助 Python 及其社群.
接下來是一些完全不同的內容
g 因子(也稱為 g 值)是一個無因次量,用以表徵原子、粒子或原子核的磁矩與角動量。本質上,它是一個比例常數,將粒子所觀察到的不同磁矩 μ 與其角動量量子數及磁矩單位(使其成為無因次量,通常為波耳磁子或核磁子)連結起來。其數值與旋磁比成正比。
檔案
| 版本 | 作業系統 | 說明 | MD5 總和檢查碼 | 檔案大小 | Sigstore | GPG | |
|---|---|---|---|---|---|---|---|
| Gzip 壓縮原始碼封存檔 (Gzipped source tarball) | 原始碼版本 | ed23dadb9f1b9fd2e4e7d78619685c79 | 25.4 MB | .sigstore | SIG | ||
| XZ 壓縮原始碼封存檔 (XZ compressed source tarball) | 原始碼版本 | d0c5a1a31efe879723e51addf56dd206 | 19.1 MB | .sigstore | SIG | ||
| macOS 64 位元 universal2 安裝程式 | macOS | 適用於 macOS 10.9 及更高版本 | 3052a3dd9f61a5bad1ff16c46cfaa491 | 42.2 MB | .sigstore | SIG | |
| Windows 安裝程式 (64 位元) | Windows | 建議使用 | 4a501c073d0d688c033d43f85e22d77e | 24.8 MB | .sigstore | SIG | |
| Windows 安裝程式 (32 位元) | Windows | 041b1030be54ef78fd4c3a01ccb26267 | 23.5 MB | .sigstore | SIG | ||
| Windows 安裝程式 (ARM64) | Windows | 實驗性 | 34333bf5eb5fbd7a5eba5aa272b4e0ac | 24.1 MB | .sigstore | SIG | |
| Windows 嵌入式套件 (64 位元) | Windows | ff5f34b8d2504c49fc94ffc29998b8a0 | 10.7 MB | .sigstore | SIG | ||
| Windows 嵌入式套件 (32 位元) | Windows | d035d12d72e2d62b6e5219ea8f3bda39 | 9.6 MB | .sigstore | SIG | ||
| Windows 嵌入式套件 (ARM64) | Windows | 314e56d6f35508570eca9c3407395b01 | 10.0 MB | .sigstore | SIG | ||
