V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Apr 28, 2025 · 2816 views
    This topic created in 372 days ago, the information mentioned may be changed or developed.
    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  
       Apr 28, 2025
    不错
    dule
        2
    dule  
       Apr 28, 2025
    看完了,写的挺好挺全面
    Turing17
        3
    Turing17  
       Apr 30, 2025
    666 ,good
    fightff
        4
    fightff  
       May 5, 2025
    学习了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   909 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 18:37 · PVG 02:37 · LAX 11:37 · JFK 14:37
    ♥ Do have faith in what you're doing.