更新了 连接字符串和字符(Concatenating Strings and Characters)小节来说明一个事实,那就是字符串和字符不能再用+号运算符或者复合加法运算符+=相互连接,这两种运算符现在只能用于字符串之间相...
基于26个网页-相关网页
姓名和电话号码被连接为一个字符串,然后分割为含两个字符串的数组。
The name and the phone number are concatenated into a single string and then split into an array of two strings.
连接操作是一个顺序的连接多个数据片段的过程,通常是连接字符串和非字符串数据(绝大多数是变量或其它字符)。
Concatenation is the process to sequentially join multiple pieces of data, usually literal strings with non-string-literal data (most commonly, variables or other literals).
当字符串是这样合并在一起时,由于运行时没有中间字符串,所以连接它们的时间和内存可以减少到零。
When strings are folded together like this, there are no intermediary strings at runtime and the time and memory that would be spent concatenating them is reduced to zero.
应用推荐