姓名和电话号码被连接为一个字符串,然后分割为含两个字符串的数组。
The name and the phone number are concatenated into a single string and then split into an array of two strings.
通常,您需要在两个字符串之间连接一个变量。
Often, you need to concatenate a variable between two strings.
记住,使用concat 2进行连接要求使用两个字符串,因此数字将导致此函数在递归之间中断。
Remember that the concatenation using concat2 requires two strings, so a number will cause this function to break within the recursion.
String版本的连接操作要求将需要连接的两个字符串复制到新位置,这是一种O (n)操作。
The string version of concatenation requires strings you want to join to be copied to a new location, which is an o (n) operation.
String版本的连接操作要求将需要连接的两个字符串复制到新位置,这是一种O (n)操作。
The string version of concatenation requires strings you want to join to be copied to a new location, which is an o (n) operation.
应用推荐