以上来源于: WordNet
I invite all such to join themselves, as true sons of knowledge, with me, that passing by the outer courts of nature, which Numbers have trodden, we may find a way at length into her inner Chambers.
我邀请所有这样的人加入他们,身为知识的真正的儿子,跟我一起,数着脚下的路,穿过自然的层层樊篱,也许我们最终能发现内在的规律。
A string whose length is greater than zero is always evaluated as True when resolved to a Boolean function, even if its value is the string 'false'.
长度大于0的字符串在解析为Boolean函数时,总是被判断为True,即使它的值是字符串' false '时亦是如此。
For instance, you can see that any time the if condition is true, the nested while loop will execute at least one time (because the list length will be greater than zero).
例如,您可以看到,每当if条件为真的时候,嵌入其中的while循环至少会执行一次(因为list的长度肯定大于0)。
It says if this is a string of length 0 or 1, I'm done. I'm going to return the answer true.
我就会返回答案为真,否则的话我得判断它。
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.
是奇数还是偶数,事实上,这是不正确的,如果最后剩下一个,那可能得到了结果,如果剩下两个,可能错了,所以,首先我们要格外。
应用推荐