This is equivalent to a return statement in other programming languages.
这相当于其它编程语言中的return语句。
I can write it with or without the return statement, and my results will be the same.
我可以编写它,让它带有或者不带return语句,得到的结果是相同的。
And you don't need a comment before the return statement saying, "Now we return a value," either.
同样,在返回语句之前也不需要使用类似“Nowwereturn a value”这样的注释。
Several of the actions take advantage of the implicit return statement to return data to a GSP page named the same.
有些动作利用隐式的return语句将数据返回到具有相同名称的gsp页面。
A method that returns a value must have a return statement that specifies the result. Methods may return values of any type.
一个有返回值的方法必须包含一条返回语句指明返回结果。方法可以返回任何类型的结果。
Does the return statement in the following method cause compile errors?
代码中的return语句是否会造成编译错误?
In some contexts, like a return statement, it is syntactically simpler to create a tuple than a list.
在某些情况下,比如返回语句中,用元组来实现语法上要比列表简单很多。
We have seen the return statement before, but in a fruitful function the return statement includes an expression.
返回语句我们之前已经遇到过了,但在有返回值的函数里面,返回语句可以包含表达式。
On to the answers. You do not need to provide the return type of a lambda function; it is deduced from the return statement.
不需要为lambda函数提供返回类型;根据返回语句推导出返回类型。
Finally, note how the single row VALUES clause is used in the return statement to return the end result as a single-row table.
最后,注意在return语句中使用了单行的values子句,以便将最后的结果以单行的表的形式返回。
Unfortunately, because the loop branch is so close to the return statement, you cannot predict both the loop branch and the return branch.
不幸的是,由于循环分支太接近返回语句,因此您无法预测循环分支和返回分支。
If the statement is not successful, the value of SQLERRNUM is captured and returned to the caller using the return statement and the RETURNS clause.
如果语句不成功,将使用return语句和returns子句捕捉SQLERRNUM的值并返回给调用者。
Because Groovy is a dynamically typed language, defs do not require any type declarations for parameters, nor do defs require a return statement.
因为Groovy是动态类型的语言,所以def不需要对参数作任何类型声明,def也不需要return语句。
The showopts function analyzes the options as before, but USES the return statement to return the value of the OPTIND variable to the calling statement.
showopts函数像以前一样分析选项,但是使用return语句将OPTIND变量的值返回给调用语句。
Changing the return type to float, for example, isn't flagged as an error because an int in the test method's return statement is automatically promoted to float.
如果将返回值改为float,这不会被标记成错误,因为test方法返回语句中的int会自动转换成float。
The put command sends back the contents of the output buffer, but the return statement at the end of main also sends back data; the status generated will be passed back to the PPE.
PUT命令会发回输出缓冲区的内容,但是main末尾的返回语句也会将数据发送回去;所生成的状态会发回给PPE。
However, in Python, you don't need to worry about these semantics because the two approaches are accomplished in an almost identical manner using the return statement (see Listing 4).
但在Python中,您无需担心这些语义问题,因为通过使用return语句,几乎可以相同的方式实现这两个目的(参见清单4)。
TBSCAN(18) represents the RETURN statement in the SQL Table function.
TBSCAN(18)表示这个SQL表函数中的RETURN语句。
TBSCAN(18) represents the RETURN statement in the SQL Table function.
TBSCAN(18)表示这个SQL表函数中的RETURN语句。
应用推荐