We'll actually see it's a wonderful way of effectively looping yourself back around, for instance if you're at the end of the alphabet So what about those variables?
如果我们要将某些东西首尾连在一起,在这个圈里循环,你就会看到它的奇妙之处了,譬如,你在字母表末,好,我么继续,这些变量都是些什么?
The colon is important It's defining the beginning of a block of instructions. Yes sir.
这个冒号很重要,是因为它定义了,一块指令的开始,有问题么?
It avoids these problems of duplication and fission.
它能避免复制和分裂的问题么。
And you might say, wait a minute, isn't that a string, and the answer's no, I didn't say it's a string by putting quotes around it And notice how the machine responds differently to it.
你会想,等等,这不是个字符串么?,答案是否定的,我没用引号包围它就意味着它不是字符串,请注意计算机对它给出了不同的反应。
How do we know this always stops? I mean, I ran three trials here, and it did. But how would I reason about, does this always stop?
我指的是我在这儿试了三次,它都停了,那这是为什么呢?,它总是会停下么?
Does it give you the answer that you expected it to give? Often, in practical problems, you'll spend just as much time doing performance debugging. Why is it slow?
它返回了期待中的结果了么?通常,在实际的问题中你会花,同样多的时间在性能调试上,它为什么运行这么慢?
Now I look at that element. Is it the thing I'm looking for? If I'm really lucky, it is. If not, I look at the value of that point here and the thing I'm looking for. And for sake of argument let's assume that the thing I'm looking for is smaller than the value here.
现在我们瞧瞧指向的元素,它是我们找的值么?如果足够幸运,他就是,如果不是,我们比较指向的元素,同我们要找的元素,方便起见,假设要找的元素比这里的值要小。
Can you see a pattern there? Yeah.
你能看出它的模式么?你说。
Can we say why it broke down?
我们能解释为什么它会分裂么
Well, one way of course is to accept the objection and say " "You're right Death isn't really bad for me " And some philosophers have indeed accepted that very conclusion, maybe Epicurus Most of us want to say " "No, no Death is bad for me" So we need a better answer to the ?" "Oh yeah? When is it bad for you?"
一种方式当然是接受它并说,“你是对的,死亡对我来说真的没什么坏处“,而一些哲学家确实接受了,那个结论,也许比如伊壁鸠鲁,我们大多数人想说,“不,不,死亡对我来说有坏处“,于是我们需要一个更好的答案来回答,“是么?,它什么时候对你有坏处了“
Are there more than two elements there?
它会检查是否比二大么?
In Python, it'll find it, I think one bug at a time, right John?
在Python中,它会找到它的,我觉得一回能找一个漏洞,对么John?
应用推荐