I've written a little for loop, which is going to iterate over all of the elements in the list.
让我们先看看这儿的代码,我已经写了一个循环语句,用来迭代处理数组中所有的元素。
So in this case, one of the standard ways to do this, is to use what's called a linked list.
标准的处理方法是使用链表,我接下来也准备这么做。
I don't want to have to deal with heat escaping to the outside environment in a way that might be difficult or complicated to measure or calculate.
我可不想处理跑到,环境中去的热量,那测量或,计算起来会非常麻烦和复杂。
If I want to get down to very, very fine dimensions, I have to bring huge energy and disturb the very thing I am going to measure.
如果我想认真处理很精确很精确的度量,我需要用巨大的能量,但是弄乱我将测量的东西。
My secretary is able to process that command, my computer cannot process that command.
我的秘书都能做到,我的电脑却不能处理这项指令。
Now finally, I'm going to do something with this crazy syntax.
最后,我将用这个疯狂的语法,来处理一些事情。
So what do you do with those on a syllabus?
我要怎么处理我的教学大纲呢?
It's still the same central processing unit,or so it seems to me.
在我看来是中央处理器还是一样的。
So doing music, if I'm sight reading, playing, it's a very complex thing, but most of the--most of this music and language processing happens in these-- the--as I mentioned--the left and right auditory cortex.
如果我想创作音乐,即兴创作,即兴表演,那就会很复杂了,但是大多数的语言和音乐处理,都在这部分发生,就是我之前提到的左右听觉皮层
I successively negotiate difference, and in doing that I need the concept of differance.
我接连地处理了差异,在此过程中,我需要différance的概念。
But the nice thing about contacting the teaching fellows is they'll be able to get back to you more quickly in all likelihood, and then in addition, because they'll be handling all the questions from students you'll be getting uniform answers.
但联系助教的好处是,他们可能答复得比我快多了,因为他们要处理很多学生的问题,你们会收到统一的邮件回复
That is if I can write code that would solve all instances of smaller size strings, then what I just described isPalindrome will solve the larger size one.
然后我会描述如何处理大字符串,事实上这正是我所做的,我希望你能看看这边的这段代码,就是这个。
I could imagine writing another function for same point, and I have to give it a name like same point polar, and same point Cartesian.
程序不知道怎么来做了,它没有对应的处理方法,所以它要抱怨了,那么我这里的问题就是,这也是我一直想要说的。
In other words, you might think of it as a kind of artificial, processed, bland, easily consumable version of fate. I really mean that. One of the funny things about that debt to Finnegans Wake is, Finnegans Wake as a book of puns is unreadable.
也就是说,你可能会把它当做一种人为的,处理过的,乏味的,容易消耗的命运,我正是此意,关于《芬尼根守灵夜》中一个有趣的事是,它作为一本充满双关语的书是不值得一读的。
Yes, that's probably true as a general observation, whether it comes through clearly on these two-- this comparison-- I'm not quite so sure, but there--I wouldn't say there's a great deal of detail in the first one.
是,可能从一般角度观察是对的,不管是否是通过,这两者的对比得出的结论,我也不太确定,但我不会说,第一首里有大量的细节处理
What does that say? It says if in the code up here I get an exception of that sort, I'm going to go to this place to handle it.
这意味着如果在代码中,我得到一个这样的异常,我能到这里来处理它。
But I want to stress again, as long as I do the base case right and my inductive or recursive step reduces it to a smaller version of the same problem, the code will in fact converge and give me out an answer.
就开心的去做吧,但是我想再次强调,只要基础事件处理正确而我的递归,或递推步骤能把它简化为更简单的同类问题,那么这段代码就可以收敛。
I'm going to print here the list if we go into it, and print of the when we're done and then just return that.
注意接下我来我要做的事,运行到这里时会打印列表,并且当处理完成后会打印返回的列表。
The flip side is there are going to be a couple of lectures now where it is not going to be on the test, so I think you will deal with it.
现在这种对立面将是,一些现在的课程,这些不会在考试上出现,所以我想你能处理好的。
Well some things I can actually expect may happen and I want to handle them.
我能预期的一些事情可能会发生,我希望能处理他们。
Because I forgot what happens when you look at fractions.
因为我忘了处理分数的时候,应该注意的问题。
OK. Having said that, let's look at doing some sorts. And I'm going to start with a couple of dumb sorting mechanisms. Actually, that's the wrong way saying it, they're simply brain-damaged, they're not dumb, OK?
我们来做些排序吧,我要开始处理一些愚蠢的排序机制,事实上,我说的不正确,他们就是没脑子,不是笨,发明出来后,他们就在不停的被挑战?
I'd argue that MATLAB is basically a targeted language it's targeted at matrices and vectors and things like that.
我认为MATLAB是有特定处理对象的语言,它主要,面向矩阵和向量等。
At each stage, no matter which branch, here or here, I take, I'm cutting down the length of the list that I'm searching in half. All right?
选的是这里还是那里,我总是把列表分成两半,对吧?,所以如果我处理一个长度为n的列表?
More fundamentally, I want to get back to what I think of as the main theme of 6.00, which is taking a problem and finding some way to formulate the problem so that we can use computing to help us get an answer.
花一些时间来讲,更重要的是我想,回到我认为的6。00的重点,即处理问题并公式化问题,从而使我们能够靠电脑得出答案。
To make this point, let me see if we can get my helper here, technical person, to bring up a slide for me, and my question to you is-- as this slide comes up-- is the following: where in the brain is music processed primarily?
为了说明这点,我看看,能不能让我的助手,技术支持人员,帮我把幻灯放一下,那么我的问题就是,我们等幻灯出来,我的问题如下,大脑中的哪部分是处理音乐信息的,主要的
And I've got to worry about, is somebody else using ANS, answer, as a variable, in which case I've got to be really careful. Is somebody else using x as a variable? I've got to deal with a lot of those details.
而且我还要担心有没有别人,使用了ANS,answer作为变量,这样我就必须要非常小心,有没有别人用x当做变量呢?,我需要处理很多类似的细节。
For Problem Set 1, as you may have seen already, ; what I thought I'd -- I had not, in fact, seen that clip; so I did a quick Googling and that's actually as relevant as the movie really gets I think to computing.
对于习题集1,你们可能已经看过了,事实上,我还没看过这个电影片段;,所以我google了一下,那个实际上是跟,我想要处理的电影是相关的。
I didn't just make it one smaller, I made it a half smaller. That's a nice deal.OK.
我把它的规模减半了,这太棒了,好,但是我不会直接处理b是偶数这种情况的。
F-O-O in lowercase and, in fact, foo it is buggy because I typed lowercase F-O-O and FOO yet I get back capital F-O-O as both the original and the copy and that's simply because I haven't done this correctly.
小写的f-o-o,实际上,它是有bug的,因为我输入小写的,而我得到的原始的和拷贝的都是大写的,简单说,我处理错了。
应用推荐