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

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

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

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

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

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

  • You can see that residential investment, as a fraction of GDP, has been very variable through history of the United States since World War II and that it's had a strong relationship with recessions.

    住宅投资要计入,国内生产总值,纵观美国自二战以来,这部分投资,变动很大,而且与衰退存在着密切关联

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

  • A futures market has a prediction going out years into the future of what every financial variable will be doing, so you can see the future in a sense through the futures prices.

    一个期货交易市场,预测了未来几年,每个金融变量的变化,因此,在某种意义上,你们可以通过期货价格分析未来市场

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

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

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

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

  • Just to remind you what it does, we bound x to some value, we set up an initial variable called ANS or answer, answer and then we run through a little loop.

    记住你要做些什么,我们给x赋一个值,我们建立一个初始变量,命名为ANS或者。

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

  • And then I run a loop in which I read something in, I check to see if it's the right type, if it is, I change that variable to say it's now the correct type, which means the next time through the loop, I'm going to say I'm all set and I'm going to bounce out.

    因为我还没输入,然后我运行一个循环,循环内部我输入一些东西,然后看看是不是正确的类型,如果是的话我改变input,Ok为真,来证明输入数是正确的类型,这就意味着下一次运行这个循环的时候,就可以跳出循环继续执行了。

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

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

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

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