String concatenation VS string format

后端 未结 4 2322
無奈伤痛
無奈伤痛 2021-02-19 05:23

What is the best approach, simple string concatenation or string.format?

For instance, what is the better to use:

 s:=v1+\' \'+v2 
         


        
4条回答
提交回复
热议问题