• So this plus plus is sort of shorthand notation for incrementation. So just add 1 to this variable's value, so now socks on feet is of course 1 and so next.

    那么这个++符号是递增排序的,所以仅仅是对这个变量加一,现在袜子在脚上是一,那么下一个也是这样。

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

  • What's going on underneath the hood is we'll see pictorially X today is that when I declare this X, this variable X here.

    底下所做的,我们将看到,当我声明这个X,这个变量。

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

  • So, and of course, you know, keeping entropy as a fixed variable for a system like that is extremely cumbersome.

    所以,对这样的系统要求它们的熵保持恒定,和一个非常笨拙做法。

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

  • All right? The first one is, that test has to involve-- shouldn't have to, the value of some variable.

    好不好?第一件事是,循环开始的测试必须必须-不是一定,一些变量的值。

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

  • This is continuously variable because I can vary voltage continuously.

    这是连续改变的,因为我可以逐渐改变电压。

    麻省理工公开课 - 固态化学导论课程节选

  • If you have an experiment and the outcome of the experiment is a number, then a random variable is the number that comes from the experiment.

    如果你有一个试验,这个试验的结果是一个数,那么相对应的随机变量,指的就是这个试验结果所对应的那个数

    耶鲁公开课 - 金融市场课程节选

  • What's variable about them is that they bind to a specific antigen.

    它们可变的原因是,它们需要结合不同的抗原

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

  • However, there's one other variable that you want to be aware of and that is, he knows he ought to be going straight ahead like that, but he also knows that his right flank is open.

    然而,还有其他变数是必须考虑到的,那就是,士兵知道他是向前直行的,但是,他同样知道他的右路是洞开的

    耶鲁公开课 - 古希腊历史简介课程节选

  • One of the advantages of this is, that I don't have to worry about explicitly updating my variable. That happens for me automatically.

    这样继续下去,这样做的一个优点是,我不用为更新变量来发愁了,程序会自动的为我进行这个操作,这一点很好。

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

  • And the only thing that's differing is the name of the type and the name of the variable I'm using.

    其中唯一的区别是数据类型的名字,和我使用的变量名字。

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

  • 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.

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

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

  • name So it's-- the name of the variable is name.

    即,变量的名字就是。

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

  • That there's a lurking variable which is just that people are more likely to be born in June.

    人们的研究对象之中有一个隐藏变量,那就是大多数人都是在六月出生的。

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

  • All that's going to change, is the value the variable or the value of some data structures.

    或者一些数据结构的值,提醒大家在这块代码里面。

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

  • And that test is usually a value of a variable.

    测试通常是针对变量的值。

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

  • OK. The other piece I want to say about variable names is, once I have that choice of variable name, I can use it, but in fact there are a few things that I can't use in terms of variable names.

    关于变量名字我还想说的,另外一点就是,一旦我对变量的名称可以选择,我可以用自己的方式命名,但是,有一些词汇是,不能用来命名变量的。

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

  • And the thing I wanted point out is, we've got this global variable number of calls. Which is there not because Fibonacci needs it but just for pedagogical reasons, so that we can keep track of how much work this thing is doing.

    要指出的是我们已经,调用了几次这个全局变量,这不是因为斐波那契数列,需要调用它而只是,因为教学上的需要,以便我们可以知道,这个函数做了多少事情。

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

  • But if we could statistically control for every other variable, all I'd need to do is measure the distance from your door to everybody else's door on campus and I could chart out who's going to fall in love with whom on the Yale campus.

    如果我们能精确地控制其他可变因素,那么只需要测测距离,你宿舍门到其他宿舍门的距离,我就能够计算出,校园里谁爱上了谁。

    耶鲁公开课 - 心理学导论课程节选

  • If it is right, I'm going to print out the information but I'm also going to change that variable to true.

    看如果它是对的,它是对的的话,我将会输出结果。

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

  • And the answer is, you can use a variable anywhere you can use the value.

    答案是,在需要用到值的,任何地方都可以使用变量。

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

  • Because I was taught good style, I'm giving that variable a name that conjures up the idea of its role, which is thankful or not.

    因为我们学习了好的格式风格,我将给那个变量起一个,能使我们联想到它的角色作用,它是满意的或不满意的。

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

  • But in general, the choice of variable name is a great way of commenting your code.

    但是通常来说,变量名称的选择,是评论你的代码的,一个重要方式。

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

  • If I want to try and decide how to tackle a problem in an iterative matter, here the steps I'm going to go through. First thing I'm going to do, is I'm going to choose a variable that's going to count.

    但是这就是我对它的观点,如果我试着去以迭代的方式,解决一个问题的话,下面是我应该采取的步骤,第一件要做的事情。

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

  • Right.? I'm going to set up a variable to say, none what's the answer I want to return, is it there or not. Initially it's got that funny value none.

    看我要找的答案在不在数组里面,初始化为,然后建立一个索引。

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

  • 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.

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

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

  • Initialization. A very common bug is to initialize a variable. Go through a loop, and then forget to reinitialize it when it needs to be reinitialized again.

    忘记初始化,忘记初始化变量是一个很常见的错误,运行完一个循环之后,当需要再次初始化时。

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

  • And what it's saying semantically is, using that variable as my placeholder, have it walk through this collection, starting at the first thing, execute that code, then the next thing, execute that code, and so on.

    它的语义意思就是,把这个变量应用为我的占位符,用它来遍历这个集合,从第一个元素开始,执行代码,然后下一个元素,再执行代码。

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

  • So I start this program by declaring as I did before a global variable X. It is global simply because it is not inside any of my functions.

    在程序的开始,我声明,一个全局变量X,它是一个全局的,因为它不在任何一个函数里面。

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

  • And that shows you one other nice little thing we want to do, which is if I look in this code notice I set up a variable up here called false Solution Found, initially bound to false.

    这显示了我们想要做的另一件事,那就是我在这段代码中设置了一个,名为Solution,Found的变量,初始值设为。

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

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

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

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