• "Oh,I'm right,am I? Well,I'm not right.I'm wrong. I just said that to test you.

    VOA: special.2009.07.19

  • Why? Because that block identifies a set of things that I'm going to do if the test is true.

    为什么呢?这是因为这一块指令,指定了一系列的要进行的操作,如果测试为真的话。

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

  • And then I'm also going to take the LSAT, the test for law school.

    我也打算参加法学院入学考试。

    再没时间也要挤出来 - SpeakingMax英语口语达人

  • Well, here I'm a little bit below 100 and in two, and test one a little bit below 100 as well.

    好了我现在在试验2中有一个小于100的数,而实验1也得到了一个小于100的数。

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

  • Don't worry. I'm sure you will pass the next test.

    别担心。我相信下次你肯定能通过的。

    I'm sure 课堂 - SpeakingMax英语口语达人

  • The third thing I'm going to do, is I need to set up the right end test.

    我要做的第三件事情,就是需要设置正确的完结测试。

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

  • I'm doing a test there to say, x if the string x is less than the value of b, and x does not appear before b as strings, then I was going to do, oh, a couple of things, because they're at the same block level.

    我正在做一个测试来看看,字符串,是不是小于b的值,而且x不在b之前作为字符串出现,如果是真的话我就要做,一系列的操作,因为他们是在同一个块等级上。

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

  • So we have if, and that is followed by, I'm going to use angle braces here just to indicates something goes in here, some test followed by a colon.

    那么我写了if,后面跟着,我这里会用一个角括号,来代表这里有些东西,冒号后面跟着一些测试。

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

  • I'm expecting the value that test to be a Boolean. Followed by a colon.

    我希望测试的结果值的类型,是Boolean的,后面是个冒号。

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

  • That was the kind of thing you saw. Asserts said here are some conditions to test. If they're true, I'm going to let the rest of the code run.

    这就是你看到的,断言是一些测试条件,如果他们为真。

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

  • They're inside that loop-I've got the wrong glasses so I'm going to have to squint- and we've got one test which is a comparison we've got another test which is a multiplication-- sorry, not a test, we've got - another step which is a multiplication- and another step that is a subtraction.

    他们在循环里面呢,我带错眼镜了所以不得不斜视-,然后我们这里有一个比较的测试,还有一个乘法的测试,-对不起,不是测试,是另外一个乘法的步骤-,还有一个减法的步骤。

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

  • And it has an end test, something that tells me when I'm done and what the answer is.

    还有一个终极测试,告诉我什么时候,完成和最终结果。

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

  • And when I do this test, what I want to do, is say I'm going to pick the middle spot, and depending on the test, if I know it's in the upper half, I'm going to set my start at the mid point and the end stays the same, if it's in the front half I'm going to keep the front the same and I'm going to change the endpoint.

    如果我知道目标数可能,再比中值点大的区间里,我可能就会把开始点设为中值点,而尾点不变,如果在小的那个区间里,就保持开始点不变而把尾点设为中值点,你们可以看到这儿的代码,就是这么做的,对不对?它是怎么做的?

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

  • Yeah, I've still got a binding for z and I'm giving it the same test, but notice now I've got the two same commands but they have different indentation.

    对,我还是对z进行了绑定,我还是要对它进行同样的测试,但是请注意现在我有了两个同样的命令,但是它们有不同的缩进。

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

  • So I'm going to go over here, and I'm going to type test search-- I can type and if you look at your handout, it's just a sequence of tests that I'm going to do OK. So initially, I'm going to set up the list to be the first million integers.

    大家可以看看你们的课堂材料,那儿有一些我要做的实验,好,一开始我先去建立个,含有一百万个integer的数组,对,这有点儿简单,但是这给我提供了这样一个有序的数组。

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

  • So what's going to happen here? If I'm inside this FOR, OK, and I'm running around, if I ever hit a place where this test is true, I'm going to execute that return, return that return returns from the entire procedure. OK? So the return comes back from the procedure.

    那么这里发生了什么呢?,如果我是在这个for循环里面,我正在运行,如果我运行到test的值为真的地方,我就会执行,这个return将会返回整个程序的值,明白了吗?所以它将会从整个程序中返回值。

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

  • I've got to test to see if I'm in the base case, and if I'm not, then I need to move a tower of size n minus 1, I need to move a tower of size 1, and I need to move a second-sorry about that a second tower of size n minus 1.

    首先我看看我是不是在最基本的情况,如果不是的话,我得先做一个N-1个,圆盘的移动,移动一个圆盘,然后再做一次N-1个圆盘的移动。

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

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

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

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