不可以用操作符、逗号或闭括号作为表达式的开始符。
Expressions must not begin with an operator, comma, or closing parenthesis.
还要注意,这里使用. set将变量str_size的值设置为逗号后面的表达式。
Also note the use of.set to initialize the value of the variable STR_SIZE to the expression following the comma.
就是一个有序的序列,好,那么我们怎么创建元组呢?,好,表达式是,一个方括号,后面是一系列的元素,以逗号分开,以一个闭方括号结束,这就是我刚才所说的。
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.
不可以用操作符、函数、逗号或开括号作为表达式结束符。
Expressions must not end with an operator, function, comma, or opening parenthesis.
一个表达式表是一个包括至少一个逗号的元组,它的长是表中表达式的个数。
An expression list containing at least one comma yields a tuple. The length of the tuple is the number of expressions in the list.
如果逗号运算符左侧的表达式没有任何副作用,则编译器可能不再生成该表达式的代码。
If the left expression to comma-operator has no side effects, the compiler might omit code generation for the expression.
逗号方面,44.9% 的开发者喜欢将逗号放在表达式的末尾,然而有4.9% 的开发者喜欢先写逗号。
When it comes to commas, 44.9% favor to place them after an expression, while 4.9% prefer to use comma-first syntax.
一个表达式表是一个包括至少一个逗号的元组,它的长是表中表达式的个数。其中表达式从左到右按顺序计算。
An expression list containing at least one comma yields a tuple. The length of the tuple is the number of expressions in the list. The expressions are evaluated from left to right.
一个表达式表是一个包括至少一个逗号的元组,它的长是表中表达式的个数。其中表达式从左到右按顺序计算。
An expression list containing at least one comma yields a tuple. The length of the tuple is the number of expressions in the list. The expressions are evaluated from left to right.
应用推荐