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

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

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

  • - And here as promised is that other operator -- looks a little weird, but because assignment is already using the equal sign to assign one value on the right to a variable on the left.

    在这里正像所承诺的那样,其他的操作-,看起来有点怪异,但是因为“=“已经被用来当赋值运算符了,用来把右边的一个值赋值给左边的变量。

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

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

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

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

  • But it's variable because it doesn't always go off on the thousandth time.

    但中奖比率是变化的,因为你并不总在拉杆一千次的时候中大奖。

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

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

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

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

  • 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秒来等它完成,但是我们使用循环,我们更新一个变量,我们把它排成一个漂亮的格式。

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

  • It's a common mistake to make if you forget that I've actually declared that variable up top, but wait a minute, I know any time that I use a variable, I have to declare it.

    这是一个通常犯的错误,如果你忘了,之前在前面已经声明了这个变量,等等,我知道在任何时候,我使用一个变量,我必须声明它。

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

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

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

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

  • But what's the variable I want to use?

    但是我想用的是什么变量呢?

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

  • D-A-V-I-D I'm not hardcoding in D-A-V-I-D anymore but I can still use a variable.

    我不再把名字写死为,而是用一个变量来代替。

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

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

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

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

  • 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循环中,我们把一个增变量叫做,因为我们只要一个索引,这里也一样。

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

  • But that table does not affect any bindings for other instances of the variable like x for ANS.

    这时这个局部表就消失了,这个局部表将不会影响其它赋值,比方说像ANS对应的x变量。

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

  • When you declare a pointer yourself manually, you do say char * the variable name because recall that's the same thing that we did earlier but we called it instead string.

    当你手动声明一个指针是,你可以说char,*,变量名字,因为那是我早些时候做的事情,但是我们叫它为字符串。

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

  • 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 notice unlike a for loop, if you want to declare a variable or increment or decrement to variable, you've got to do that yourself.

    但请注意不像for循环,如果你想声明一个变量,或者变大或变小一个变量,你需要自己完成。

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

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

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

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