资讯

图源 Python 网站 据悉,在 Python 3.12 中 f-string 解析更加灵活,许多之前不允许的操作,在这个版本都进一步放宽。
Python 3.14 引入了 PEP 750 提案,正式支持模板字符串(t-strings),这是继 f-strings 之后,Python 字符串处理能力的又一次重要升级。
Earlier today the Python release team announced that the newest major release of the language, Python 3.12.0, is now available. It includes many new features, such as flexible f-string parsing ...
F-strings, Python’s convenient system for performing string formatting, used to be heavily restricted in terms of how they could be formatted. Python 3.12 removes many of these limitations.
Python 3.8.0 now available New Python features F strings in Python 3.12 have also seen some changes. They have become less finicky, allowing for nested double quotes.
Official support for free-threaded Python, an experimental JIT, and a smarter installation manager for Windows are among the goodies in Python 3.14. Now in a release candidate.