• The Loop includes the financial district around LaSalle Street.

    VOA: special.2009.01.12

  • I've written a little for loop, which is going to iterate over all of the elements in the list.

    让我们先看看这儿的代码,我已经写了一个循环语句,用来迭代处理数组中所有的元素。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Condition," this thing in the middle between the semicolons, is going to be checked every iteration of the loop.

    条件,“这个在两个分号的中间,它将迭代地检查这个循环的条件。

    哈佛公开课 - 计算机科学课程节选

  • The oil slick has now entered the loop current that runs from the Gulf of Mexico to the Florida Keys and up the east coast of the U.S., Jarvis said.

    VOA: standard.2010.05.26

  • It could run and give you the right answer, it could crash, it could loop forever, it could run and apparently give you the right answer.

    它可能会正确运行,并返回给你一个正确的答案,它可能会崩溃,它可能会一直运行下去,它可能会运行并给你正确的答案。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And there is a self-enforcing loop between the two, where helping others helps ourselves; and helping ourselves, in turn, helps others.

    两者间有自我实施的循环,帮助他人就是帮助自己;,帮助自己继而帮助他人。

    哈佛公开课 - 幸福课课程节选

  • Well, we say at the top of the loop, when it goes up and comes down the velocity is 0.

    在曲线顶端,当物体上升,然后速度为0时候

    耶鲁公开课 - 基础物理课程节选

  • This is a highly simplified version, but sort of closes the loop on what we've been talking about.

    以上是对整个过程的高度概括,但它涵盖了我们讲过的内容

    耶鲁公开课 - 生物医学工程探索课程节选

  • We're gonna have a so called a loop, an infinite loop and you actually experience this in the real world.

    我们将会做一个循环,一个无限循环,你会在这个,真实世界里体验它。

    哈佛公开课 - 计算机科学课程节选

  • Once each time. Right? I only do one swap potentially, it-- though not one potentially, each time at the end of the loop I do a swap.

    每次循环做一次,对么?我其实,就可能做了一次交换,也许并不是可能,每次循环的结束我都得做一次交换。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Well I ought to be able to do that by simply generalizing the loop. And that's what the next piece of code on your a hand out shows you.

    好的通过生成这个循环,我应该能够达到目的,这也是你们的讲义中下一段代码。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Now, all the cat is doing is that it's an infinite loop and it's checking if I am not facing bird, - face bird, and it's -- It's constantly chasing the bird.

    猫能做的就是一个死循环,并且它能检测我是不是面对着一只鸟,如果没有就转向那只鸟-,它一直不停地追逐这只鸟。

    哈佛公开课 - 计算机科学课程节选

  • And so the guys in Office Space took that money and they-- -- their for loop-- way too fast is-- was the takeaway in that movie, when they freaked out because they had million dollars or something like that overnight.

    所以在办公地点里的家伙才能够搞到钱-,然后利滚利--很快的方法-,这就是整个影片的亮点,当他们出于极度兴奋之中,因为他们已经一夜之间,变成百万富翁了。

    哈佛公开课 - 计算机科学课程节选

  • You can kind of see where the syntax is going, looks like a loop, but you can kind of put blocks inside of you, and the little arrow suggests that once you get to the bottom just like our socks example, you're gonna do the following again.

    从某种程度上你可以看到它的语法构成,像个循环,你也可以把,一些程序块放到循环中,如同短袜的例子,这个小箭头暗示你一旦到达底部,你将会重复接下来的事情。

    哈佛公开课 - 计算机科学课程节选

  • The cookies were going back and forth and back and forth and the hearts up and down, well, this thing that we had that called a loop last week with a forever block with a statement inside of it is simply gonna look a little something like this.

    这些饼干人来来回回的移动,还有这些爱心们上上下下地漂浮,都用到我们上周提到过的循环结构,当然还有个声明在里面,就有点像屏幕上,显示的这样。

    哈佛公开课 - 计算机科学课程节选

  • And we won't wait here one hundred seconds for it to finish, but we're using the loop, we're updating a variable, and we're formatting it in a nice way.

    我们将不会再这里等待100秒来等它完成,但是我们使用循环,我们更新一个变量,我们把它排成一个漂亮的格式。

    哈佛公开课 - 计算机科学课程节选

  • So this is a nice little search-- sorry, a nice little sort algorithm . And in fact, it's relying on something that we're going to come back to, called the loop invariant.

    恩,这是一个很棒的小搜索,抱歉,和很棒的小排序算法,事实上,它依赖于一些我们要回顾的东西,被称作循环不变量。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And I want to remind you, that block of code is a set of instructions, the same set of instructions that are going to be done each time through the loop.

    我想提醒大家,这块代码是一个指令集,一个每次循环都会被执行的相同指令集,会变化的仅仅是变量的值。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • And as soon as this condition or these conditions evaluate to false, the whole loop terminates.

    一旦这个条件或这些条件不成立,整个循环终止。

    哈佛公开课 - 计算机科学课程节选

  • If you look at solve 2, it's going to solve2 run through the same kind of loop, printing out all of the answers.

    我会让你们看一看,如果你在看,那将运行相同的循环。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • If you're not updating some variable by incrementing it or decrementing it -- if you're not changing anything, presumably the conditions are never going to evaluate to false or the opposite, so you're just going to have an infinite loop, which might be your goal, but odds are it's not.

    如果你不通过增加或减少它来改变一些变量,-如果你不改变什么,大概那个条件永远不会变成错误的,或相反的,所以你将得到一个无限循环,那可能是你的目标,但可能也不是。

    哈佛公开课 - 计算机科学课程节选

  • The loop invariant what does the loop invariant mean? It says, here is a property that is true of this structure every time through the loop.

    循环不变量是什么意思?,它是一个在结构体中,每次循环都为真的属性。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • On line 2, we're gonna induce what's called a loop, so do you wanna go ahead and Philip henceforth you get to stare, stare at the awkwardness.

    第二行,我们将介绍什么叫做循环,你想接着往下读吗,飞利浦正盯着你看,略显尴尬。

    哈佛公开课 - 计算机科学课程节选

  • Which means, next time through the loop, that's going to pop out and return an answer.

    循环会跳出并返回这个答案,如果不相等的话。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Then the next thing in the loop, we're going to enter a nested loop and say for every college in the list e, we're going to print the name of the college.

    循环中的第二件事,是进入一个嵌套循环,这个嵌套循环将数组中的,大学名字显示出来。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Now I have the ability to create a loop, that is, to reuse the same pieces of code over and over again as I go around.

    现在我们已经学会如何创建循环了,也就是,重复的一遍又一遍的,执行同一片代码。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • Oh, there's a man at the store and now we have a loop where he is just looking through my inventory one at a time and reciting what it is I actually picked up.

    商店里有一个人,现在我们有一个循环,通过这个循环他可以看到我的库存,然后显示出来我实际上都采摘了哪些水果。

    哈佛公开课 - 计算机科学课程节选

  • So it's initialized outside the loop when it should be initialized inside the loop. Or conversely, inside the loop when it should be outside the loop. So look carefully at when variables are being initialized.

    却忘记了,意思就是它本来应该,是在循环外初始化,但是却是在循环初始化的,所以在初始化变量的时候注意这一点。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • swap I'm going to keep track of a little variable called swap, it's initially true, and as long as it's true, I'm going to keep going, but inside of the loop I'm going to set it to false, and only if I do a swap will I set it to true.

    我打算跟踪一个小的变量称为,初始值为真,只要它是真的,算法就会继续,但是在循环里,我打算把他设为假,除非交换发生,就把它设为真。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • So each time through the loop, I'm doing three steps. Three basic operations.

    因此每次运行这个循环,我做了三次基本运算。

    麻省理工公开课 - 计算机科学及编程导论课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定