默认情况下,函数体中的动作只作用于最终解析。
By default, the actions in a function body are only performed on a final parse.
方法签名以冒号结尾,表示下面的代码行是函数体。
The method signature ends with a colon, which indicates that the body of the function follows on subsequent lines.
程序由函数组成,而函数体是一系列的语句序列。
Programs are organized as functions whose bodies are a sequence of statements.
函数定义不执行函数体,它们仅仅在调用时执行。
The function definition does not execute the function body; this gets executed only when the function is called.
生成器是这样一个函数,它记住上一次返回时在函数体中的位置。
A generator is a function that remembers the point in the function body where it last returned.
可以在全局范围以及在名称空间、函数体或类声明内使用静态断言。
You can use static assertions in global scope and inside namespaces, function bodies, or class declarations.
有几个版本中已出现了在函数体中用yield语句定义的生成器。
For several versions, we have had generators defined with the yield statement in a function body.
函数体,为所选函数在执行其自身代码时分配的对象数量。
Function Body, the total number of contention events that occurred when the function was executing its own code.
通常从抽象方法声明的函数体或接口方法声明中引发此异常。
Typically this exception is thrown from the function body of an abstract method declaration or from an interface method declaration.
为了我们的例子,所有更新方法的函数体仅包含一个打印语句。
For our example, the bodies of all the update methods just contain a print statement. When we run this example we get the following output.
请注意,大括号在循环中的使用不如在函数体和成员块中严格。
Notice that the use of braces in loops is less strict than for function bodies and member blocks.
由函数体组成的代码即使是在一行,仍必须在两端加上左右大括号。
Code that comprises the body of a function, even if it is a single line, must be contained within left and right braces.
函数体,为该函数执行自身代码时发生的争用事件中所用的总时间。
Function Body, the total number of bytes that were allocated by the selected function when it was executing its own code.
缺少标记函数体、类成员块、接口成员块或枚举块的开头的左大括号。
The left brace that marks the beginning of the function body, class member block, interface member block, or enumeration block is missing.
这个表达式实际上是一个“匿名函数”的函数体,在Scala中称为字面函数。
This expression is actually the body of an "anonymous function", called a function literal in Scala.
函数体然后从下一行开始,一直连续下去,直到遇到一个匹配的endfunction关键字。
The body of the function then starts on the next line, and continues until a matching endfunction keyword is encountered. For example.
定义:一种函数调用机制,你将函数声明为内联,编译器会将整个函数体在调用处展开。
Definition: You can declare functions in a way that allows the compiler to expand them inline rather than calling them through the usual function call mechanism.
定义函数必须指定4个元素:返回类型、函数名、圆括号内的形参表(可能为空)和函数体。
A function definition specifies four elements: the return type, the function name, a (possibly empty) parameter list enclosed in parentheses, and the function body.
定义、变量和函数体可以在程序的任意位置出现,Perl 所提供地强大功能可以最好地满足这种随意性。
Namespaces can begin and end anywhere. Definitions, variables, and functions bodies can occur anywhere and Perl will do its best to accommodate such madness.
限制:过度使用内联函数实际上会使减慢程序运行,取决于函数体大小,它决定了代码增加或减少。
Cons: Overuse of inlining can actually make programs slower. Depending on a function's size, inlining it can cause the code size to increase or decrease.
另外一个好处是下次重复使用这段代码的时候,再次调用函数就可以了,这比复制粘贴函数体可方便多了。
Another advantage is that if you reuse the code, it is more concise to call a function twice than to copy and paste the body!
当你调用math .cos或者math .exp的时候,你并没有仔细查看这些函数的函数体。
When you call math. cos or math. exp, you don't examine the bodies of those functions.
catch子句既可以处理从成员初始化列表中抛出的异常,也可以处理从构造函数函数体中抛出的异常。
The catch clause can handle exceptions thrown either from within the member initialization list or from within the constructor body.
不幸的是,一旦您开始编写通用的断言来描述自己希望在某个特定的函数体中处理的值时,就很容易创建一些模糊的条件。
Unfortunately, once you start writing general predicates describing the values you would like to handle within a particular function body, it becomes easy to create ambiguous conditions.
这行代码的问题是:在Singleton构造函数体执行之前,变量instance可能成为非null的。
The problem with this line of code is that the variable instance can become non-null before the body of the Singleton constructor executes.
函数体几乎与 “DiscoverPython,Part6”中的语句完全相同(但该文章中的乘法表为从1到10)。
The function body is almost identical to the statements shown in " Discover Python, Part 6" (the previous times table went from 1 to 10).
而对于引起状态迁移的接口事件,则可以通过对象类中的成员函数来完成,成员函数体的主要功能就是实现状态迁移中发生的一系列活动。
The member functions of an object are the interface events that trigger state transitions, and actions associated with state transitions constitute the body of the member functions.
而对于引起状态迁移的接口事件,则可以通过对象类中的成员函数来完成,成员函数体的主要功能就是实现状态迁移中发生的一系列活动。
The member functions of an object are the interface events that trigger state transitions, and actions associated with state transitions constitute the body of the member functions.
应用推荐