... 互补 Calculating the Reverse Complement of a Strand of DNA 数组 Array 条件和循环 If and Loop ...
基于1个网页-相关网页
If the condition evaluates to FALSE or NULL, the loop is bypassed, and control passes to the next statement.
如果条件的求值结果为FALSE或NULL,那么将绕过循环,并且控制被传递给下一条语句。
The advantages of adding a loop are that the loop is visible, and that you can control the rate of iterations through the loop if needed.
添加一个循环的好处在于循环是可见的,并且如果需要的话您可以通过循环控制迭代的速率。
So, and similarly, if I take any other loop that avoids the origin, I can find, actually, a surface bounded by it that does not pass through the origin.
类似的,对于任何不经过原点的环路,都能找到一个以之为界的曲面,该曲面不经过原点。
Now, all the cat is doing is that it's an infinite loop and it's checking if I am not facing bird, - face bird, and it's -- It's constantly chasing the bird.
猫能做的就是一个死循环,并且它能检测我是不是面对着一只鸟,如果没有就转向那只鸟-,它一直不停地追逐这只鸟。
You've got a loop, you've got a condition and a boolean to check if he's touching the edge, and some statements to tell him to shout or to actually turn around.
我们有一个循环,通过一个条件和一个布尔值来判断,是否触到了边缘,还有一些语句,让它回头并咆哮。
swap I'm going to keep track of a little variable called swap, it's initially true, and as long as it's true, I'm going to keep going, but inside of the loop I'm going to set it to false, and only if I do a swap will I set it to true.
我打算跟踪一个小的变量称为,初始值为真,只要它是真的,算法就会继续,但是在循环里,我打算把他设为假,除非交换发生,就把它设为真。
应用推荐