"Return语句" is not found on TREX in Chinese-English direction
Try Searching In English-Chinese
(
Return语句)
这些C函数从来不运行return语句;而是在结束时调用一个延续。
These C functions never reach the return statement; instead, they call a new continuation when complete.Return语句可以从一个方法返回,并把控制权交给调用它的语句。
The return statement can transfer control out of a loop and return control to the calling method.同样,throw或return语句总是跳转程序控制而无法执行到自身的结尾。
Likewise, a throw or return statement always transfer control elsewhere and never reaches its end point.所以即使我们编写一个不包含return语句的函数,它仍然会返回某些东西。
So, even if you write a function with no return statement, it's still going to return something.某些情况下,例如return语句,它创建元组的语法比创建列表的要简单。
In some contexts, like a return statement, it is syntactically simpler to create a tuple than a list.在for循环中使用return语句会结束该函数,因此循环外部的行将不会运行。
Using the return statement within the for loop ends the function, so the line that is outside of the loop will not run.事实上,没有return语句的函数也返回一个值,尽管是一个很无聊的值。
In fact, even functions without a return statement do return a value, albeit a rather boring one.一个不带标签的return语句总是在用fun关键字声明的函数中返回。
A return statement without a label always returns from the function declared with the fun keyword.在返回非void的方法中,return语句必须含有一个计算返回值的表达式。
In a method returning non-void, return statements must include an expression that computes the return value.其次,假设方法生成了一个值,则那个值紧接在return语句的后面。
Second, if the method produces a value, that value is placed right after the return statement.流经有返回值的函数(除了main)的函数尾而不经过return语句是未定义行为。
Flowing off the end of a value-returning function(except main) without a return statement is undefined behavior.执行这个return语句会完成double函数体的执行,并计算调用表达式的值。
Executing this return statement completes execution of the double function's body and computes the value of the call expression.Return语句有两种形式:一种返回一个值,一个没有返回一个值。
The return statement has two forms: one that returns a value, and one that does not.不带表达式的return语句将把控制权返回给调用者,但不返回有用的值。
A return statement without an expression returns control to the caller, but does not return a useful value.实际上,即使函数没有return语句,它也有返回值,虽然是一个不讨人喜欢的。
In fact, even functions without a return statement do return a value, albeit a rather boring one.一个带返回值的return语句不使用小括号”()”,除非它们以某种方式使返回值更为显见。
A return statement with a value should not use parentheses unless they make the return value more obvious in some way.每一个函数都在其末尾隐含了一句returnNone,除非你写了你自己的return语句。
Every function implicitly contains a return None statement at the end unless you have written your own return statement.实际上,任何函数在任何时候都可以通过return语句后面加上要返回的值来实现返回值。
Any function can return a value at any time by using the return statement followed by the value to return..在ECMAScript中,一个return语句将控制流从一个闭包中返回到一个调用上下文中(acaller)。
In ECMAScript, a return statement from a closure returns the control flow to a calling context(a caller.以void声明为返回类型的函数必须完全省略其return语句,或者使用空的return语句。
Functions declared with void as their return type must either omit their return statement altogether, or use an empty return statement.
中文
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt