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

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

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

  • Data's what we expect. It's our way of representing fundamentally the kinds of information we want to move around.

    数据是我们一直需的,它是用来表达我们想操作的,数据类型的基本方式,这里。

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

  • In a moment, I'm gonna drag and drop in order to induce this right to do something.

    一会,我拖拽这些东西,来进行一些操作

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

  • Science can be hands-on, you might be down at the lake picking up algae and studying them or something, that would be hands-on.

    科学研究也是动手的,你可能会到湖底,收集水藻并研究它们,这就是动手操作

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

  • As carefully as people work with radioactivity here, and using often much, much safer radioactive materials than radium bromide, and using them, and special hoods, and having special procedures, they still do a lot of checking with these Geiger counters to make sure everything's safe.

    虽然在这里人们,用放射性物质都非常的小心,而且通常用的材料放射性,都比溴化镭小得多,并且用的时候,都用特殊的容器,特殊的操作过程,但我们平时仍会用。

    麻省理工公开课 - 化学原理课程节选

  • On the other hand, if the value I'm looking for here- sorry, the value I'm looking for is smaller than the value I see here, I just need to look here. All right?

    如果我的目标数比这个值小呢?,我就在这边找就对了,对不对?,做完了这一步,我可以在下一步做相同的操作,假设我选中了这一分支?

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

  • So it makes sense to be able to say, look for many methods I do want to have a way of doing comparison, and I don't have to remember, at top level, what the name of the comparison method was.

    所有我需的对象进行操作,那么就可以这么说了,我想在很多方法里面,去找做比较的方法,我并不需记住,每一个比较的方法的名字。

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

  • And I haven't said yet, how do I get that collection, but you could certainly conceptualize that, if I had that collection, that would be nice thing to do. That is a more common pattern.

    也可以这么来操作,这是个更常用的模式,这基本上也就意味着,对于某些数据的集合,我想一个循环机制。

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

  • 3 So here what I'm doing is 17 divided by 13, but because of this parenthetical, , -- because of that parenthetical -- that has nothing to do with math; -- this is a programming language thing -- that is a casting operation.

    所以这里我做的是用17除以,但因为这样的题外话,因为那样的题外话-,还是没有做完这个数学题;,这是一个编程语言的东西-,那是一个计算操作

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

  • I hope you can see this because I'm going to try and simulate what a merge sort does. I've got eight things I want to sort here, and those initially start out here at top level.

    我希望你们认真看,因为我尝试着模拟出归并排序的操作过程,这里我有八个元素进行排序,第一步是将它们分成两半,对吗?

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

  • If somewhere later on in the code it shifts to string, I might not be manipulating that and getting actual values out, but not what I wanted, and it's going to be really hard for me to chase it back.

    然后后面的一些代码,把变量类型变为了字符串,我可能不会通过实际操作,去取得实际的变量的类型,但是这并不是我想的类型,而且对我来说把类型,变回去也很困难。

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

  • And the last piece of this, is as said, I have to make sure I know what my primitive elements are, in terms of operations.

    最后,正如我们所说,我们确定我们的基本元素是什么,以便于操作,我希望大家可以学习到。

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

  • Nonetheless, having done that, let's look at what I'm going to do. I now want to run a loop where I need to collect things together.

    尽管如此,讲完了这些,让我们去看看,我将进行的操作,我想运行一个,需把东西收集起来的循环,我命名它。

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

  • hey'd rather single step it through using Idol or something, than just read it and try and figure things out. The most important thing to remember when you're doing all of this is to be systematic.

    比起阅读代码发现错误来他们,宁愿用内置的操作层,或者其他工具一步完成,你记住的最重的事情,就是系统化的去做调试。

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

  • And those are two things that you'd like to do with every looping construct you write: you'd like to be able to assure yourself that they will always terminate, and then the second thing you'd like to do, is to assure yourself that it does give you back a reasonable answer.

    就是现在我有了能去检查程序,是不是做了正确的操作的能力:,这就是你们在写每个循环程序的时候,都注意的两个事情:,第一件事情是确保程序可以终结,第二件你做的事情,就是确保程序返回了正确的答案。

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

  • p2 It's taking the name p 1 and it's changing its value to point to exactly what p 2 points to.

    把p1赋值为1,这个操作有什么用呢?,这个操作把p1这个名字的,指针的值改变让它。

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

  • All right? And if you want to do other things, whoops, sorry-- and add them together, we will get out, again, a concatenation of that string. And these will, we'll let you work through the variations, but these are the simple expressions we can use.

    对不对?如果你想进行一些别的操作,哦,对不起-是加到一块,然后结果值也是,两个字符串的链接,这些会,我们会让大家慢慢学习变量,但是这些是我们能用的最简单的表达式。

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

  • So notice what I'm going to do.

    请注意我去做的操作

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

  • It's not what I want here.

    这不是我操作

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

  • That means starting at the first one, I'm going to do something to it. And what am I'm going to do? I'm going to take that character, convert it back into an integer, and add it into some digits. And I've done a little short hand here, which is I should have said some digits is equal to some digits plus this.

    这意味着从第一个字符开始,我对他们进行一些操作,我去做什么呢?我取得这个字符,然后把它转换为整数,然后加到某些数上面去,我在这里用了一些缩写,我本来应该写一个数字等于这个数字。

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

  • So, for example: in this case, my list is a bunch of integers. And one of the things I could take advantage of, is I'm only going to need a finite amount of space to represent an integer.

    列表是一系列整数,注意的这里的优势能够,用有限的空间来表示整数,例如,如果我想操作

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

  • And it's a topic I want to pick up on today, we're going to do for the next few lectures, and it's a topic I want to spend some time on because this idea of capturing data and methods, the term we're going to use for it, but data and functions that belong to that data, things that can be used to manipulate them, is a really powerful one.

    我们会在今天讲这个话题,在后面几节课还会讲这个,这是个我愿意花点时间,在上面的话题因为这是个,捕获数据和方法的思想,我们用这个术语来形容它,数据中包括了数据和函数等,能用来操作它们的东西,真的是很强大的工具,我们真正讲的东西是,我们学会如何把信息。

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

  • Notice that that typically also defines for me what the internal variables are, what the internal characteristics of the class are going to be.

    就放进去是比较好的,我写下了init声明意思就是,当你创建一个实例的时候,这就是你进行的操作

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

  • Because I keep counting down each time around-- mostly I've got to unload this candy which is driving me nuts, so-- thank you.

    因为我每次循环b减了,我一共执行这个循环b次,所以这里我们一共执行了3b次基本操作

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

  • And in Python the expression is, operand, operator, operand, when we're doing simple expressions like this, and if I give it to the interpreter, it gives me back exactly what you'd expect, which is that value. OK?

    在Python中表达式就是,运算对象,操作符,运算对象,当我们处理这样的简单表达式的时候,我把表达式传给处理器,处理器给我返回了我想的结果,对不对?

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

  • In the other context, you know in a Window and a Windows machine, you close it with the X on the top right hand corner, where do you close it in the Mac?

    还有一个就是,在Windows操作系统下,当你关闭某个东西时,需点击,右上角的“X“,那在Mac操作系统下呢?

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

  • Give you some examples. What have we talked about? We've talked about things like using comments to highlight what you're doing in the code, to make it easier to debug.

    给大家举些例子,我们一直在强调什么来着?,我们讲过用注释来说明,你在代码中进行的操作,以便于调试。

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

  • All right, and let's just check this out, because I want to make a point of this, let's go back and do the following.

    好,让我们记住这一点,因为我想强调下这里,我们回过头去做如下的操作

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

  • And I want to basically try and use these things to do something with them.

    我想试试然后,用这些声明来进行一些操作

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

  • If I now say, I'm going to go ahead and change the radius of this, something, my polar form did it right, but what happened to the Cartesian form?

    如果我现在说,我去改变这里的半径,一些这样的操作,我的极坐标形式,进行了正确的改动?

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

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

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

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