In the first section of this function, you set up objects needed to create the report, like the width and height of the canvas, as well as padding variables.
在这个函数的第一部分中,您设置了创建报告需要的对象,比如画布的宽度和高度以及填充变量。
Define all variables at the top of the function.
在函数的首部定义所有的变量。
Another function of such a script is to set up predefined variables in a consistent way.
这种脚本的另一个功能是以一致的方式设置预定义的变量。
However, what if the application wanted to track other data such as the value of certain variables or even attempt to profile the code by recording the duration of a particular function invocation?
但是,若是应用程序想要跟踪其他数据(比如某些变量的值)或者甚至试图通过记录特定的函数调用过程来剖析代码,那么情况又是如何呢?
This is how recursive functions keep from trashing the values of the variables in other, active function calls.
这就是递归函数是如何保证其他活动函数调用中的变量值不受影响的。
OK, so now, let's say that we had, actually, a function of two variables.
可能是这样的,现在我们可以说,有一个含有两个变量的函数。
Well, this problem is so simple that the problem data is directly included in the objective function and constraints declarations as the coefficients of the decision variables in the declarations.
噢,这个问题是如此简单,问题数据都作为声明中决策变量的系数直接包含在了目标函数和约束声明中。
A closure "closes around" these references, so the function invocation can safely refer to the variables even when the variables have gone out of scope!
一个闭包封闭了这些引用,所以函数调用可以安全的引用这些变量,即使它们已经超出了函数的作用域。
So, a function of several variables doesn't have the usual derivative.
因此,一个多变量的函数没有通常的导数。
In fact, if you had a function of many more variables the criterion would still look exactly like that.
事实上,如果你有一个多变量函数,那么它的准则依然如此。
A nested, or inner, function can inherit the arguments and variables of its outer function, and is private to that function.
一个嵌套的内部函数可以继承外部函数的参数和变量,并由该外部函数私有。
So, when we think of a graph, really, it is a function of two variables.
因此当我们在想像一个图像时,其实那只是一个二元函数的图像。
OK, so last time we saw how to use Lagrange multipliers to find the minimum or maximum of a function of several variables when the variables are not independent.
上次我们看了,怎样利用拉格朗日算子,去求解一个受约束的,多变量函数的最大最小值。
If you have a function of 30 variables, things work the same way, just longer, and you are going to run out of letters in the alphabet before the end.
如果有一个30个变量的函数,什么都一样,只是式子长了点,你还会用完字母表中的所有字母。
Well, let's say how to visualize a function of two variables.
如何想象一个有两个变量的函数。
After the function in tail position is called which of our local variables will be in use?
函数在尾部被调用之后,还需要使用哪个本地变量?
The optimal value of the relaxed objective function (the one that didn't consider the decision variables as integers) is also printed here.
放松限制的目标函数(不将决策变量当作整数考虑)的优化值同时也给出来了。
The function begins with the declaration of a variety of needed variables and structures.
函数开始是声明所需变量和结构。
So, we said when we have a function of two variables, we have the gradient vector.
我们说,当一个二元函数存在时,就有梯度向量。
That was our first example of a function of two variables possibly.
这是二元函数中的第一个例子。
The tcp_close function updates three variables of the routing metrics structure, and then releases the resources held by the socket.
tcp_close函数更新路由度量结构的三个变量,然后释放套接字持有的资源。
Let's first consider how to return the output of the XMLQuery function to variables declared in a stored procedure.
我们首先考虑如何将XMLQuery函数的输出返回给存储过程中声明的变量。
Most of the variables used in RunSearch are defined at the beginning of the function.
runsearch函数开头处定义了它所用到的绝大多数变量。
The line xdebug.show_local_vars = 1 prints all local variables in the outermost scope of each function call, including variables not yet initialized.
代码行 xdebug.show_local_vars =1将打印每个函数调用的最外围中的所有局部变量,包括尚未初始化的变量。
A number of variables have special meanings that are a function of the rule they're being used in. The most commonly used are
很多变量都有一些特殊的意义,这是正在使用它们的规则的一种功能。
In Python, you obtain the value of these variables with a single call to the os.environ.get function as follows.
在Python中,通过对os . environ . get函数的一个调用来获取这些变量的值,具体如下。
Calling a generator function a second (or NTH) time jumps into the middle of the function, with all local variables intact from the last invocation.
对生成器函数的第二次(或第n次)调用跳转至该函数中间,而上次调用的所有局部变量都保持不变。
That is, a closure is an anonymous function that, when created, attaches to itself the value of variables from the scope of the code that created the function.
就是说,closure是个匿名函数,在其创建时,将来自创建该函数的代码范围内得变量值附加到它本身。
Variables that are a part of a % FUNCTION block, and they can only to be referenced within that block.
FUNCTION块中的变量,并且它们只能在该块中引用。
Variables that are a part of a % FUNCTION block, and they can only to be referenced within that block.
FUNCTION块中的变量,并且它们只能在该块中引用。
应用推荐