String concatenation vs. string substitution in Python

前端 未结 9 1642
暖寄归人
暖寄归人 2020-11-29 17:13

In Python, the where and when of using string concatenation versus string substitution eludes me. As the string concatenation has seen large boosts in performance, is this (

9条回答
  •  时光说笑
    2020-11-29 18:05

    I use substitution wherever I can. I only use concatenation if I'm building a string up in say a for-loop.

提交回复
热议问题