You can actually initialize multiple things at once by separating them with a comma, and this is sometimes helpful.
你可以一次性初始化很多东西,通过用逗号分开它们,这有时是有用的。
I've got two parameters, they're separated by a comma. Ah, right. Sorry?
我说的是什么?20和56对吧?注意格式,我有两个参数,它们由一个逗号隔开?
So if I scroll now to the right, I should see a comma after the closed quote and then what two values?
所以我滚动到右边,我应当看到一个逗号,在右引号的右边,然后这两个值是多少?
and after your last name, put a comma.
在姓后面加上一个逗号。
And that's really a placeholder for the comma-separated list of values that I put after those quotes.
这其中还有一个逗号分开的有值的占位符,我把它放到了引号之后。
But sometimes you can pass multiple things inside those parentheses, and so you separate them by commas.
有时候我们可以往圆括号里填入多个参数,参数与参数之间用逗号分开。
Well at some level it is an ordered sequence of characters. Right? Now it is not represented this same way. You don't see strings inside these open parens and closed parens.
现在字符串不是用这种方式表达的,你没有看到字符串里有开括号闭括号,字符串中间也没有逗号,但是它有同样的属性。
OK. And how do I create them? Well, the representation is, following a square bracket, followed by a sequence of elements, separated by commas, followed by a closed square bracket.
就是一个有序的序列,好,那么我们怎么创建元组呢?,好,表达式是,一个方括号,后面是一系列的元素,以逗号分开,以一个闭方括号结束,这就是我刚才所说的。
Well, in just a moment, it happens right after the comma.
在这个逗号后面。
It says, if I want to print out something I built in Cartesian form up here, says, again, I'm going to pass it in a pointer to the instance, that self thing, and then I'm going to return a string that I combine together with an open self and close paren, a comma in the middle, and getting the x-value and the y-value and converting them into strings before I put the whole thing together.
这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。
int A Well, one, function has called swap, takes one int called A, printf followed by another int called B, and as we've seen with print F, if you have multiple arguments, you separate them by commas.
好的,函数叫做swap,一个参数是,另一个参数是int,B,我们看到的,如果你有好几个参数,把它们用逗号分开。
Notice I close the quotes after I'm putting a new line-- after I'm putting this new line, name but then to the right hand side is comma name.
注意反斜杠n后面加上后引号-,后引号,再右边就是逗号。
Let me go ahead and call print F. I'm going to say A equals A and then I need a percent D, backslash, comma A; so this is a little bit of -- more syntax than would be nice, %d but I'm just saying, literally, A equals percent D, and I'm plugging in the value of A for percent D.
我们继续调用printf,我说明A等于,然后我需要%d,反斜杠n,逗号;,所以这个有点--偏向逻辑的,而不偏向美观的,但是我刚说了,字面上,A等于,我用%d插入了A的值。
应用推荐