• Before long we'll see that you can actually put things inside those parentheses which make your programs even more useful.

    不久之后,你们就可以看到,我们是可以在括号里面加参数的,这些参数可以让你的程序更有用。

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

  • And then in the parentheses we'll see in a moment, it tells me what folder I am inside of.

    圆括号里的东西,告诉我们,我们现在正处于哪个目录下。

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

  • We've looked so far really at two non-scalar types. And those were tuples written with parentheses, and strings.

    关于这两种基本类型我们已经,学的相当多了,包括哪些元组和字符串类型。

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

  • And when we describe this in terms of talking about chemistry terminology, we would call the first one the 1 s, and 1 is in parentheses because we're talking about the first electron there, and we would multiply it by the wave function for the second one, which is also 1 s, but now we are talking about that second electron.

    当我们用化学术语来,描述它的时候,我们称第一个为“1s“,括号中的1是因为我们,在谈论第一个电子,而且我们会用它的波函数,乘以第二个,第二个也是“1s“,但是我们现在谈论的是,第二个电子。

    麻省理工公开课 - 化学原理课程节选

  • I just want to make mention of this in case there's ever doubt, generally parentheses do solve your problem as an arithmetic but do realize this is some lower level details we'll come back to over time.

    是想告诉大家如果你对某些式子的前后运算关系不确定,就加上括号,这都是一些小细节,我们以后还是会再提到的。

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

  • And then notice the structure, WHILE I got a keyword WHILE, there's that color identifying it, and in parentheses I have a test.

    然后注意这个结构,有一个关键词,颜色就可以区分出它了,然后括号内是个测试。

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

  • You might recall from grade school sometimes you put things in parentheses so that your addition happens first, then your multiplication, otherwise multiplication would happen by default first.

    你们可能会想起小学时,将一些加法表达式,放在圆括号里,这样加法可以先计算,然后是乘法,否则,乘法默认先发生。

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

  • Now you have a set of parentheses as we'll see int i=0 in actual code and then I have int I equal 0.

    你将会在实际的代码中看到一对圆括号,比如,我们让。

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

  • But sometimes you can pass multiple things inside those parentheses, and so you separate them by commas.

    有时候我们可以往圆括号里填入多个参数,参数与参数之间用逗号分开。

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

  • And so, in fact, if I wanted the other version of it, in fact, if I do this right, 23 it's going to give me 23 because it does the multiplication first, if I wanted the other version of it, Python I need to tell it that, by using, excuse me, parentheses.

    因此,实际上,如果我想换种做法,实际上,如果我去执行这个表达式,返回值是3,因为乘法会被优先执行,如果我需要换种做法,我需要告诉,用括号来告诉它。

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

  • It's just an input to a function, the thing inside parentheses.

    圆括号里面的东西,只是一个函数的输入。

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

  • The green block is gonna become a pair of parentheses.

    只需要把绿色版块换成一对圆括号就可以了。

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

  • And even though the syntax, the characters you are about to see on the screen and in programs today onward is a little more arcane, it's a little uglier looking, you've got semicolons and parentheses and fairly arcane syntax, realize that at the end of the day these are just arbitrary human conventions, the ideas are identical to this thing here.

    可能你在屏幕上,编程中见识到的,语法,字符看起来非常晦涩难懂,甚至可以说是丑陋,像什么分号啊,括号啊等等,还有一些难七八糟的语法,但是到了最后,你会发现,这些都不过是一些人为约定而已,而蕴含在里面的编程思想跟这个例子并无二致。

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

  • But to translate this now to a language C, you've got some curly braces, you got an if, some parentheses, but now we're just building on some of the syntax we introduced before.

    如果把它转换成C语言,你又会看到一些大括号啊,if啊,圆括号啊等等,我们只是借助,之前学过的语法规则。

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

  • But if it does take input, you have to provide it in the form of arguments or parameters, like print F takes, generally, inside of those parentheses.

    但是如果它获得了输入,你需要为它提供相应格式的,参数或参量,像printf的输入,一般地,在这些圆括号里。

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

  • Now, you might in some context have to add the right kind of parentheses so that GCC or your compiler doesn't get confused, but really they just reverse each other's processes.

    现在,你可能要在相应的地方,加入一些圆括号,这样GCC或编译器就不会误解你的意思,但是它们颠倒了相互的过程。

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

  • You can also get away, as I said last time, with just putting parentheses in JavaScript and PHP, this is, in fact, the norm.

    就像我上次说的,你也可以不用参数,在JavaScript和PHP中只用圆括号,这实际上是一个规范。

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

  • The parentheses to pass in inputs or arguments to functions.

    圆括号是用来传函数的,输入或参数的。

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

  • And if it sees S-W-A-P, open parentheses, close parentheses, and it hopefully sees two ints inside of it, that's all it needs to do in order to finish compiling your code.

    如果它看到了SWAP,左圆括号,右圆括号,它可能载里面看到两个int数,那是它所需要做的,用来完成代码的编译。

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

  • But at the end of the day, the point of the slides is not to expect you to now go write programs in C but really to just remind you that, hey, if you ever get distracted from some of the minutia that is the semicolons, parentheses, and what is very new to many of you, it's really no different than the fun and games we implemented with Scratch last week.

    但是最终,我们课件上讨论的主题,并不是让你现在就写一个C语言的程序,而是要告诉大家不要你被那些分号括号,还有一些从未见过的符号等一些细节搅得心烦意乱,因为它们本质上,和我们上周用Scratch做出来的游戏,并无区别。

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

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

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

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