I didn't expect it to do this. If you understand why it did what it did, you're half way there.
这样运行的啊,如果你能弄明白为什么,它这么运行,你已经完成了差不多一半了。
Let's search to see though now if a million is in this list, or 10 million, whichever way I did this it must be a million, right?
不管我选哪个,数都挺大的对不对?,用嘴基本的方法,噢,花的时间有点长,好,而用二分法呢?
If I had been writing it-- What did Beethoven do here?
不知我写下这段没有,贝多芬在这里做了什么
so it's gonna have some impact on the third quarter, maybe leaking in the fourth quarter Um, I haven't looked at the details I might not get a check If I did, I just take in the check and go and say that we wouldn't spend it.
该计划产生的影响,或许要到第三季度才有所体现,当然也许会蔓延至第四季度,嗯,我个人也还没有深入研究,我也许并会去领支票,即使领了,我也只是拿到后离开,然后说,我们才不会花掉呢。
And if I did this, and again, don't scribble too much in your notes but if we just make it clear what's going on here, I'm actually going to delete these strategies since they're never going to be played I end up with a little box again.
如果我再进行一次,别在笔记上乱画,我们只是想知道最后会怎样,因为这些策略不会被人采用,所以我剔除掉它们,最后我得到了一个更小的方格
If you want to call something as A + B, it means that I did A and then I did B.
如果你想某个量称为 A + B,它表示我先沿着 A 走,然后是 B
bug Now, this was not the bug in this program because I did, in fact, use the equality operator and so it feels like if I type the word foo both times I should, in fact, get back you type the same thing.
现在,在这个程序中这个不是,因为,实际上,我使用了等于号,如果我输入单词foo两次,我返回给你“输入了相同的东西“
I can check it, so if this was part of some other computation, I want to know, did it find a perfect square or not?
我可以检验它,因此如果这是其它计算的一部分我想知道,它能否找到一个完全平方根呢?
Or, another way of saying it is, what if I did this?
或者换种方式,我这么做会有什么结果?
I can't rely on Professor Guttag if I give this- if this code to him, I can't rely on him to type in a float. Actually I can, because he's a smart guy, but in general, I can't rely on the user-- I wouldn't do it right to see if you did.
当Guttag使用这段代码的时候-,我不能相信他一定会输入一个浮点数,实际上我能因为他很聪明,但是总体上来讲,别相信用户一定会按照规则来-,我会故意做错来试试你的程序的。
应用推荐