注意: 雖然 JavaScript 對於本網站不是必需的,但您與內容的互動將受到限制。請開啟 JavaScript 以獲得完整的體驗。

Python 3.12.0

釋出日期: 2023年10月2日

這是 Python 3.12.0 的穩定版本

Python 3.12.0 是 Python 程式語言的最新主要版本,它包含了許多新特性和最佳化。

與 3.11 相比,3.12 系列的主要新功能

新特性

型別註解

棄用

  • 根據 PEP 623,unicode 物件的 C 實現中已棄用的 wstrwstr_length 成員已被移除。
  • unittest 模組中,一些長期棄用的方法和類已被移除。(它們自 Python 3.1 或 3.2 起就已被棄用)。
  • 已棄用的 smtpddistutils 模組已被移除(參見 PEP 594PEP 632)。setuptools 包繼續提供 distutils 模組。
  • 一些其他陳舊、損壞和已棄用的函式、類和方法已被移除。
  • 字串中無效的反斜槓轉義序列現在會發出 SyntaxWarning 警告,而不是 DeprecationWarning,使其更加顯眼。(它們將來會成為語法錯誤。)
  • 為準備效能增強,整數的內部表示已發生變化。(這不應影響大多數使用者,因為它是一個內部細節,但可能會給 Cython 生成的程式碼帶來問題。)

有關 Python 3.12 變更的更多詳情,請參見“Python 3.12 的新變化”

更多資源

接下來是些完全不一樣的內容

They have no need of our help
So do not tell me
These haggard faces could belong to you or me
Should life have dealt a different hand
We need to see them for who they really are
Chancers and scroungers
Layabouts and loungers
With bombs up their sleeves
Cut-throats and thieves
They are not
Welcome here
We should make them
Go back to where they came from
They cannot
Share our food
Share our homes
Share our countries
Instead let us
Build a wall to keep them out
It is not okay to say
These are people just like us
A place should only belong to those who are born there
Do not be so stupid to think that
The world can be looked at another way

(now read from bottom to top)

難民》,作者:Brian Bilston

完整更新日誌

檔案

版本 作業系統 描述 MD5 校驗和 檔案大小 Sigstore GPG
Gzip 壓縮的原始碼包 原始碼釋出版 d6eda3e1399cef5dfde7c4f319b0596c 25.9 MB .sigstore SIG
XZ 壓縮的原始碼包 原始碼釋出版 f6f4616584b23254d165f4db90c247d6 19.6 MB .sigstore SIG
macOS 64 位 universal2 安裝程式 macOS 適用於 macOS 10.9 及更高版本 eddf6f35a3cbab94f2f83b2875c5fc27 43.3 MB .sigstore SIG
Windows 安裝程式 (64位) Windows 推薦 32ab6a1058dfbde76951b7aa7c2335a6 25.3 MB .sigstore SIG
Windows 安裝程式 (32位) Windows de59862985bf7afa639f2e4f9e2a722c 24.0 MB .sigstore SIG
Windows 安裝程式 (ARM64) Windows 實驗性 230c703e3b8b3d92765d118afa7b2f78 24.5 MB .sigstore SIG
Windows 可嵌入包 (64位) Windows 8e24d2b26a8dbf1da0694b9da1a08b2c 10.5 MB .sigstore SIG
Windows 可嵌入包 (32位) Windows c2047dc270c4936f9c64619bb193b721 9.4 MB .sigstore SIG
Windows 可嵌入包 (ARM64) Windows 3da91ef1a86a8a210a32ea99c709dd93 9.8 MB .sigstore SIG