每个块都是作为一个匿名函数体来执行的。
Each chunk is executed as the body of an anonymous function.
因为它没有函数体,所以称之为抽象。
默认情况下,函数体中的动作只作用于最终解析。
By default, the actions in a function body are only performed on a final parse.
内部函数是函数体紧跟函数声明之后的标准函数。
An internal function is a standard function where the function body follows the function declaration.
程序由函数组成,而函数体是一系列的语句序列。
Programs are organized as functions whose bodies are a sequence of statements.
添加标记函数体开头的左大括号。
Add the left brace that marks the beginning of the function body.
你想在函数体中调用函数本身。
方法签名以冒号结尾,表示下面的代码行是函数体。
The method signature ends with a colon, which indicates that the body of the function follows on subsequent lines.
函数定义不执行函数体,它们仅仅在调用时执行。
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.
为了我们的例子,所有更新方法的函数体仅包含一个打印语句。
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.
通常从抽象方法声明的函数体或接口方法声明中引发此异常。
Typically this exception is thrown from the function body of an abstract method declaration or from an interface method declaration.
请注意,大括号在循环中的使用不如在函数体和成员块中严格。
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.
缺少标记函数体、类成员块、接口成员块或枚举块的开头的左大括号。
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.
定义:一种函数调用机制,你将函数声明为内联,编译器会将整个函数体在调用处展开。
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.
另外一个好处是下次重复使用这段代码的时候,再次调用函数就可以了,这比复制粘贴函数体可方便多了。
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!
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).
这样,我们需要在ObservableClicks.click 前加上abstract关键字来告诉编译器(或者读者)click还没有被完全实现,即使ObservableClicks.click有一个函数体。
Therefore, we need an abstract keyword on ObservableClicks.click to tell the compiler (and the reader) that click is not yet fully implemented, even though ObservableClicks.click has a body.
一旦这些不同的函数(例如概率分布)都被掌握,智能体就会很容易判断哪一种行为会让预期效用最大化,并据此选择正确的行为。
Once these different functions (such as the probability distribution) are learned, the correct action to take is simply a matter of deciding which action maximizes the "expected utility" of the agent.
一旦这些不同的函数(例如概率分布)都被掌握,智能体就会很容易判断哪一种行为会让预期效用最大化,并据此选择正确的行为。
Once these different functions (such as the probability distribution) are learned, the correct action to take is simply a matter of deciding which action maximizes the "expected utility" of the agent.
应用推荐