This is the name to which I'm going to refer when I want to use this function. All right?
这是我以后使用这个函数式,会采用的名字?
No, I would like to put a stop to this and the use of this pattern.
不,我想要阻止这事,你就可以使用这个句型。
If we weren't so pressed for time, I kinda wanna see how long we could get away with this before it gets awkward, but that, in fact, is an infinite loop t hat's hopefully deliberate.
如果有时间,我想看看,我们需要花多长时间解决这一问题,事实上,它是我故意,使用的无穷循环。
So p dot Cartesian is a kind of accessor, it's getting access to the data.
这就是为什么,我想要使用访问器的原因。
What I'd like to do--and this will be the first time I've the clicker thing in the class so let's try out this little quiz and see how it works.
我想要--这是我第一次,在课上使用表决器,所以我们先做个小测试看看效果如何
So we have to--We get the textbook and then with the textbook we recommend getting access to this six-CD set.
我们拿到这教材,并且我推荐大家使用这6张一套的CD
And I want you to understand the method that we'll pursue in the course.
我希望你们理解,我们在这门课上,所要使用的研究方法。
And that's why, I ended up using a multiplicative factor, rather than an additive factor.
这也是为什么,我最后使用一个倍增因子,而不是用一个加法因子。
n I know this is okay because I'm not using n until I myself put something there.
我知道这是正确的因为我不会使用,直到我给它赋值了。
We have this one parting gift-- just a little legal waiver for the cameras if you would.
我这有份临别赠礼-,准许我们使用您肖像权的声明,希望您笑纳。
It's instead outside of them and, by convention, at the top of the file so that I can access it anywhere, whether or not this is a good thing, remains to be seen.
它在函数的外面,按照惯例,在文件的顶端,所以我可以在任何地方使用它,不管这是不是好事情,拭目以待。
I want to just use it, I shouldn't have to worry about what variables I use inside of it, I have shouldn't have to worry about where that is in the code, I should be able to just abstract it away. And that's what we want to add today, are those two things.
我只是想使用它,我不用考虑我在这段代码中,使用的是什么变量,我完全不用考虑代码的内容,只要抽象就好,我们今天想补充的内容就是这两点。
This is me writing one hour of that episode of Pirandello and telling the other authors, here's what I'm assuming as you use it. So it's up to me to do it right, but if I do it, I'm going to specify, what does this function do?
作为一个程序员,我得为用户提供一些信息,这正是我写写的皮兰德娄戏剧的一小时片段,并且要告诉其它的作家,这是我希望你使用的地方,所以由我决定怎样去做好它?
I don't have to go read what it printed out in the screen. This has returned a value that I can use. Because I could do a test to say, is this a return value? If it's not, I'll do something else with it. So the binding is still there, it simply doesn't print it out.
我不想读到屏幕中打印出来的这行字,程序返回过一个我能够使用的值,因为我可以做个小测试,来说明这是否是返回的值,如果不是,我可以做一些其它的事,而这个绑定依然在这儿,没有打印任何东西。
Because the algorithm I proposed is going to leverage this idea of recursion which recall was just a piece of jargon we tossed out at the last-- at the end of last week's lecture, last time's lecture recursion really in this context refers to the act of a function calling it's self.
因为我提出的这种算法使用了,递归的思想,这是上周课程的最后,所提出的一个术语,上次的课程中,递归是指,函数的自我调用。
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使用这段代码的时候-,我不能相信他一定会输入一个浮点数,实际上我能因为他很聪明,但是总体上来讲,别相信用户一定会按照规则来-,我会故意做错来试试你的程序的。
It's a little more readable because I'm using a Boolean value that tells me, the programmer, this is true or this is false.
它更具有可读性一点,因为我使用了一个bool值,它告诉我或程序员,这是正确的或这是错误的。
应用推荐