• But here, as we saw in week zero with the shoe example putting on socks, I have to increment this variable explicitly myself.

    但是这里,像我们上周看到的,鞋子穿在袜子上,我需要亲自明确地增加这个变量。

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

  • And that's fine, because inside of curly braces can you redeclare variables with the same name if you intend to quote unquote shadow the previous variable.

    那是可以的,因为,在花括号里面,你可以重新定义一个,相同名字的变量,如果你想引用之前的变量。

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

  • Then the second derivative gives the change in entropy with respect to the variable that we're differentiating, with respect to which is either pressure or volume.

    二阶导数给出熵,随着变量变化的情况,这些变量包括压强或者体积。

    麻省理工公开课 - 热力学与动力学课程节选

  • And when I'm done with the whole thing, before I end the increment of the variable, you know, when I'm done, I'm just not returning anything out.

    在循环外面初始化它,然后做一个终结测试,然后在循环内部有一个指令集,在这个例子中,就是对余数做检查,然后显示信息,当我完成了整个循环。

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

  • I think that book will give you all the basic principles you need in calculus of one variable, more variables, elementary complex numbers, maybe solving some problems with vectors and so on, which you're going to get into.

    我想那本书会给你所需的所有基本知识,包括一元和多元微积分,简单的复数运算,可以解决一些与矢量有关的问题,而这正是你们将要学的

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

  • We're going to differentiate with respect to q1, the thing we're trying--our control variable, the thing we're trying to maximize the thing with respect to and set it equal to 0.

    对q1求导,q1是控制变量,也就是我们想要求出的最大值,令它等于0

    耶鲁公开课 - 博弈论课程节选

  • What do I now want to do with this variable?

    我要这变量干什么呢?

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

  • Sometime later, I will deal with functions of more than one variable, which I will briefly introduce to you, because that may not be a prerequisite but certainly something you will learn and you may use on and off.

    再过段时间,我要开始处理多变量函数,到时候我会向你们进行简单介绍,因为那不是必须的,但是你们以后会学到,有时候还能派上用场

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

  • We want to do that because we have too many variables here. We've already got dV p we'll get rid of p as an additional variable and replace it with V which is already in here.

    我们之所以要那么做,是因为这儿有太多变量了,我们已经有了dV,我们要把,作为额外的变量消去,用已存在的V代换它。

    麻省理工公开课 - 热力学与动力学课程节选

  • Well, this block here on the left that I came counter counter=0 up with arbitrarily sets a variable called counter equal to 0 and then it forever says that counters value 1 and then it changes the counter by 1.

    大家看一下左边的这一段代码,其中有一个随便定义的变量,它会一直显示counter的值,每显示一次,counter加。

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

  • x Inside of that structure, create a variable name x, and a value associated with it.

    创建了一个变量名为,然后给它赋值,请注意我也在这边做的操作。

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

  • Let me write a function, in fact the literal thing I would do is to say, identify the things that change, give each of them a variable name because I want to refer to them, and then write a function that captures the rest of that computation just with those variable names inside.

    让我来写个方法,实际上我的意思是,辨别出变化的东西,然后给它们逐个命名以区分,然后写一个用来计算,这些变量的,包括计算过程的方法。

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

  • Now I seem to be violating my own mantra here by just calling this variable A, but this is reasonable, I much as with four loops when you just call an incrementing variable I, because you just need an index, well, same here.

    现在我好像违背了我自己的意愿,我把这个变量叫做A,但这是合理的,就像我们的for循环中,我们把一个增变量叫做,因为我们只要一个索引,这里也一样。

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

  • 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当做变量呢?,我需要处理很多类似的细节。

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

  • Well, it turns out C, like a lot of languages, comes out of the box with a whole bunch of built-in variable types.

    在C语言还有其他一些编程语言里,都会有一大堆,固定的变量类型。

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

  • Now, unlike high school math or in algebra Z where you call things X and Y and Z, in programming, in computer science, you're actually dealing with humans where it's useful to have a variable name that's more descriptive than X and Y and Z.

    不像高中数学或者代数中,称为X和Y和,在程序设计和计算机科学里,你实际上是在和人打交道,在这里有个描述性比xyz更强的,变量名称是很重要的。

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

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

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

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