loop of string 弦端环套
You then move the actual sending of the mail outside this loop, instead building a string of text to add to the body of the message.
随后我们将邮件的实际发送移动到循环体外面,而在循环体中构建一个要添加到消息体的文本字符串。
They propose that each so-called fundamental particle actually contains a tiny, vibrating, one-dimensional loop of string.
他们认为每一个所谓的基础粒子实际有一个更小的,振动着的,一维循环的弦。
Because strings are immutable, this approach means a new string will be constructed each time through the loop, with the data copied from the old string and a single character added at the end.
因为字符串是不可变的,所以这种方式意味着每次循环时会构建一个新的字符串,从老的字符串拷贝数据并在最后增加一个字符。
If I want a copy of the string, I've got to whip out my week 1 skills of just iterating with a four loop from left to right and make copies of those characters.
我需要那个字符串的一个拷贝,我使用,第一周的技巧,从左到右做四次迭代,然后复制这4个字符。
Well, this question mark becomes an O, this question mark becomes an O, and then the loop terminates 0 1 2 because it's iterating from zero to N so that's zero, 1, 2 and the length of the string is 3 so the loop terminates, but I remember that I needed to have this special sentinel value so I'm just going to put it there manually.
嗯,这个问号变成了,这个问号变成了0,然后循环结束了,以为迭代从0到N,那就是,字符串的长度是3,然后循环就结束了,但是我记得我需要这个特殊的标记值,所以需要手动的加上它。
应用推荐