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

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

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

  • Computing square root. I'm going to capture it in a piece of code, I'm going to be able to refer to it by a name, and I'm going to suppress the details, meaning inside of that computation, you don't need to know what it does. You just need to know, if I give it the right kind of input, it'll give me back an input that satisfies the contract that I set up.

    比如计算平方根,我会用一段代码来说明,我将给它命名,并且忽略细节,意思就是在这一段计算过程中,你不用知道它做了什么,你只需知道,如果我进行了正确的输入,它将会给我符合条件的输出。

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

  • Now at this point in the story, I have a variable called name, stored inside of that is the string, literally David.

    再回到这里,我有一个名为name的变量,而且把字符串David赋给了name变量。

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

  • It's being handed a picture that looks like this, and inside each baz of these squares is a word foo and bar and baz as well as the program's name.

    它传递一个像这样的图画,在每个,长方形中是一个单词foo和bar和,还有程序的名字。

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

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

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

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