相反,编写一个函数,当调用它时,返回生成器。
Instead, one writes a function that, when called, returns a generator.
接下来,编写一个函数显示blog中的这些post。
在Vim中编写一个函数,它把文件源代码传递给Perl代码。
You define a function in Vim that passes to the Perl code the file sources.
另外一种选择是编写一个函数,只获取用户选择的插件的直接依赖性清单。
An alternative is to write a function that fetches only the immediate dependency list for a user-selected plug-in.
一般题目都要求编写一个函数以实现某功能,函数名称和参数一般也会给定。
Common theme asks to write a function in order to realize some function, function name and parameter also can be given commonly.
若要执行此操作,应该基于该窗体的任何字体,编写一个函数来将文本框的字体样式更改为粗体。
To do that, you would write a function to change the text box's font style to bold, based on whatever the form's font is.
例如,可以编写一个泛型sdo访问函数并用特定于元素的元数据填充它来访问单独的SDO。
For example, one could write a generic SDO-access function and populate it with element-specific metadata in order to access individual SDOs.
让我们编写一个输入函数来从文件中读取相应的行。
Let's write an input function to get the relevant lines from the file.
因此在编写一个全新的扩展函数时,实例方法并非首选。
Thus they're rarely the first choice when writing a new extension function.
编写一个SPL应用程序来使用这些本机函数。
为 INET_ATON()编写一个用户定义函数很容易出错,并且过程很繁琐。
To write a user-defined function for INET_ATON() could be error prone or tedious.
并编写一个简单使用动态sql的SQL用户定义函数(UDF),转换字符串中传入的公式并计算值。
And writing a simple SQL User Defined Function (UDF) that USES dynamic SQL to convert the formula passed in the string and calculate the value.
清单6给出一个用定制编程语言编写的函数。
Listing 6 shows a function defined in your custom programming language.
我们可以编写一个递归函数来遍历这些依赖性,它可以查找某个插件的最新版本(针对在相同的系统中有重复插件的情况)以及它的所有依赖性。
Walk through these dependencies by writing a recursive function that can find the latest version of a plug-in (in case duplicate plug-ins are in the same system) and all its dependencies.
我们要编写一个返回另一个函数的函数,用返回的函数计算对序列求和。
We want to write a function that given a function to compute the sum of a sequence, gives us the next function to compute the sum of a sequence.
现在只需要编写一个执行查询的函数。
Now, all that's left is to build a function for executing this query.
在c语言中可以编写一个简单的函数。
我们可以利用现有的一些函数来对Eclipse插件的版本进行比较,或者可以基于清单4所示的样例代码编写一个简单的函数来对插件版本进行比较。
You can find some existing functions to compare Eclipse plug-in versions, or you can write a simple function to compare plug-in versions based on the sample code in Listing 4.
为此,您可以编写一个绑定函数,用于修改元素的highlight -effect类以变更元素的背景颜色,如清单15所示。
To achieve this, you can write a binding function that will alter elements with the highlight-effect class to have a different background color, as shown in Listing 15.
当然,简单地编写一个具有不同返回类型的compute函数并不困难;毕竟decorator只需占据几行。
It is not hard, of course, to simply write a compute function that builds in the different return types; the decorator only takes a few lines, after all.
Meschach有一个返回在0,1之间的随机双精度数的函数,它是Meschach的一个特色,可用于简化明显的踏脚石程序的编写。
One of the Meschach features that simplifies writing the obvious stepping stone programs is a function that returns a random double in 0, 1.
使用ActionAPI,你的插件可以在这些特殊点执行一个或者多个在插件中编写的PHP函数。
Your plugin can specify that one or more of its PHP functions are executed at these points, using the Action API.
早些时候我们编写过一个计算fibtorial数的函数它便是某数与它减一的factorial数的积.
We did the factorial function earlier and it's the product of a number and the factorial of that number minus one.
除了前面描述的hook(包括action和filter)之外,另一个修改WordPress行为的插件编写方法是覆盖WordPress函数。
Besides the hooks (actions and filters) described above, another way for a plugin to modify WordPress's behavior is to override WordPress functions.
请注意此处总体上只有用户编写的一个main函数。
Note that there's only one user-written function, main , in the whole thing. I start out with a few headers.
这意味着我们必须手工重新编写栈来仿造一个返回地址,以使得尾部调用的函数能直接返回到调用它的函数。
This means that we have to manually rewrite the stack to fake a return address so that the tail-called function will return directly to our parent.
于是我编写了一个过滤器函数,判断给定的节点是否启动了一个XML岛,清单2显示了该代码。
So I wrote a filter function that, given a node, determines whether it starts an XML island. Listing 2 shows the code.
如果您调用一个可能抛出检查异常的已有函数,您应编写一个包装器函数,捕获并处理此类异常,然后在XSLT中调用包装器方法。
If you invoke a preexisting function that can throw a checked exception, you should write a wrapper function that catches and handles that exception; then, invoke the wrapper method from XSLT instead.
为了演示这个技术,我特意编写了一个函数,该函数接受一个ASCII字符、加载它、将其转换成大写并存储回去。
To illustrate the technique, I'll write a function that takes the address of an ASCII character, loads it, converts it to uppercase, and stores it back.
为了演示这个技术,我特意编写了一个函数,该函数接受一个ASCII字符、加载它、将其转换成大写并存储回去。
To illustrate the technique, I'll write a function that takes the address of an ASCII character, loads it, converts it to uppercase, and stores it back.
应用推荐