V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
chinesehuazhou
V2EX  ›  Python

Python 3.14 t-string 要来了,它与 f-string 有何不同?

  •  
  •   chinesehuazhou · 4 天前 · 888 次点击
    Python 3.14 即将引入的 t-string 是个什么玩意?

    它跟我们常用的 f-string 有何区别?

    为什么要设计出这种新的语法,它有什么应用场景?

    新发了一篇文章,深入解析 Python 3.14 新特性 t-string 语法,探讨其设计原理、与 f-string 的异同点、应用场景及进阶用法。

    https://pythoncat.top/posts/2025-04-27-t-string
    yangg
        1
    yangg  
       4 天前
    不错
    dule
        2
    dule  
       4 天前
    看完了,写的挺好挺全面
    Turing17
        3
    Turing17  
       2 天前
    666 ,good
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2133 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 10:21 · PVG 18:21 · LAX 03:21 · JFK 06:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.