您还看到从 C 语言带来的简化,其中包括字符串连接、关联数组元素和合并操作符。
You'll also find some simplifications from C, which include string concatenation, associative array elements, and aggregation operators.
所以,在字符串上的任何操作,包括字符串连接,都产生一个新的字符串对象,而不是更改一个存在的字符串。
Therefore, any operation on a string, including string concatenation, produces a new string object, rather than modifying an existing one.
应用推荐