不管何时触动了该中断点,您都可以决定i是奇数的还是偶数的。
Whenever the breakpoint is hit, you can determine whether I is even or odd.
那它是偶数还是奇数。
对。那它是偶数还是奇数。
I think it depends on whether the list is odd or even in length. Actually, that's probably not true. With one, it'll probably always get it down there, but if I've made it just equal to two I might have lost.
是奇数还是偶数,事实上,这是不正确的,如果最后剩下一个,那可能得到了结果,如果剩下两个,可能错了,所以,首先我们要格外。
Don't sweat the details here, I just want you to see the reason it goes through it.
现在我们注意到,这样做确实不错,这意味着,无论b是偶数还是奇数。
It's going to print out even or odd, depending on whether the value I put in, which is x in this case, is even or odd.
它会打印奇数或者偶数,这取决于我输入的值,也就是这个例子中的x,是奇数还是偶数。
应用推荐