Python 3.11.6
发布日期: 2023 年 10 月 2 日
这是 Python 3.11 的第六个维护版本
Python 3.11.6 是 Python 编程语言的最新主要版本,它包含许多新特性和优化。
与 3.10 相比,3.11 系列的主要新特性
Python 3.11 中一些新的主要特性和更改包括
一般更改
- PEP 657 -- 在回溯中包含精细的错误位置
- PEP 654 -- 异常组和
except*
- PEP 680 -- tomllib:在标准库中支持解析 TOML
- gh-90908 -- 将任务组引入 asyncio
- gh-34627 -- 正则表达式现在支持原子分组 (
(?>...)
) 和占有量词 (*+, ++, ?+, {m,n}+
)。 - Faster CPython 项目 已经产生了一些令人兴奋的结果。Python 3.11 比 Python 3.10 快 10-60%。平均而言,我们在标准基准测试套件上测量到了 1.22 倍的加速。有关详细信息,请参阅 更快的 CPython。
类型和类型语言更改
- PEP 673 -- Self 类型
- PEP 646 -- 可变泛型
- PEP 675 -- 任意字面字符串类型
- PEP 655 -- 将单个 TypedDict 项标记为必需或可能缺失
- PEP 681 -- 数据类转换
更多资源
- 在线文档
- PEP 664,3.11 发布时间表
- 在 https://github.com/python/cpython/issues 上报告错误。
- 资助 Python 及其社区.
现在来点完全不同的
g 因子(也称为 g 值)是一个无量纲量,用于表征原子、粒子或原子核的磁矩和角动量。它本质上是一个比例常数,将粒子的不同观察到的磁矩 μ 与它们的角动量量子数和一个磁矩单位(使其无量纲)相关联,通常是玻尔磁子或核磁子。它的值与旋磁比成正比。
文件
版本 | 操作系统 | 描述 | MD5 校验和 | 文件大小 | GPG | Sigstore | |
---|---|---|---|---|---|---|---|
Gzip 压缩的源代码 tarball | 源代码发布 | ed23dadb9f1b9fd2e4e7d78619685c79 | 25.4 MB | 签名 | .sigstore | ||
XZ 压缩的源代码 tarball | 源代码发布 | d0c5a1a31efe879723e51addf56dd206 | 19.1 MB | 签名 | .sigstore | ||
macOS 64 位 universal2 安装程序 | macOS | 适用于 macOS 10.9 及更高版本 | 3052a3dd9f61a5bad1ff16c46cfaa491 | 42.2 MB | 签名 | .sigstore | |
Windows 安装程序(64 位) | Windows | 推荐 | 4a501c073d0d688c033d43f85e22d77e | 24.8 MB | 签名 | .sigstore | |
Windows 安装程序(32 位) | Windows | 041b1030be54ef78fd4c3a01ccb26267 | 23.5 MB | 签名 | .sigstore | ||
Windows 安装程序(ARM64) | Windows | 实验性 | 34333bf5eb5fbd7a5eba5aa272b4e0ac | 24.1 MB | 签名 | .sigstore | |
Windows 嵌入式软件包(64 位) | Windows | ff5f34b8d2504c49fc94ffc29998b8a0 | 10.7 MB | 签名 | .sigstore | ||
Windows 嵌入式软件包(32 位) | Windows | d035d12d72e2d62b6e5219ea8f3bda39 | 9.6 MB | 签名 | .sigstore | ||
Windows 嵌入式软件包(ARM64) | Windows | 314e56d6f35508570eca9c3407395b01 | 10.0 MB | 签名 | .sigstore |