Next, add these function definitions at line 209.
接下来,在第209行中添加这些函数定义。
In addition, the template adds simple logging to each function by printing out to the command line the name of the function called.
此外,所调用的函数的名称将输出到命令行,通过这种方式,模板即可为各函数添加简单的日志。
For example, in our applications, the standard error message will be displayed in the message line, just above the function key line in the lower part of screen.
例如,在我们的应用程序中,标准错误信息将显示在消息行中,正好在屏幕下部的功能键显示区之上。
The first line defines a function.
第一行定义了一个函数。
You can also instantly save any function you write at the command line.
还可以立即保存在命令行上编写的任何函数。
Get in the habit of remembering to add that extra character whenever you use the line limit on this function.
应养成以下习惯:只要对此函数使用行限制,就添加该额外字符。
The last line in this function refreshes the table.
该函数的最后一行代码刷新表。
The objective function on line 20 minimizes the total food cost as the total of each decision variable (amount of food) multiplied by that food's cost per unit.
第20行的目标函数要对食物的总体成本实现最小化,该值是每个决策变量(食物数量)乘以每单位食物成本的结果。
Function CARDINALITY, used in line 15, returns the number of elements in the input array.
函数CARDINALITY用于第15行,返回输入阵列中的元素数量。
However, you might not take advantage of this function on the command line as often as you can.
然而,您可能没有在命令行中像通常那样利用此功能。
The first line calls the function in Listing 4 when the page loads.
第一行在页面加载时调用清单4 中的函数。
It has been omitted in Listing 2, so the last line of the function will be returned.
清单2忽略了这个关键字,因此函数的最后一行将被返回。
For each line in the line buffer for a CU, check for the low address match to find the first line number for the function.
要获得CU的行缓冲的每一行,则需要检查低位地址匹配以找到函数的第一行的行号。
Line 20 defines the objective function, which is just Rylon's profit (revenue - costs).
第20行定义了目标函数,它是Rylon公司的利润(收入-成本)。
In the default Settings or Application Settings,.net has choices for line and function modes.
在默认设置或Application设置中,. NET拥有对行和函数模式的选择。
The first line of a function definition, also known as the method signature, begins with def (shorthand for define).
函数定义的第一行也称为方法签名(method signature),以def开头(def是define这个单词的缩写)。
If you called this function from the command line.
如果从命令行调用该函数。
The next line registers a function as a web service operation.
下一行代码将一个函数注册为一个WebServices操作。
The first line defines a function called square that takes an argument and emits its square root.
第一行定义一个名为square的函数,该函数可接受参数并发出其平方根。
Three arguments are now pushed onto the stack, and the print_array10 function is called (line 37).
现在将三个参数压入堆栈,并调用print_array 10函数(第37行)。
The following line runs the init function on the initial page load.
下一行在初始页面加载时运行init函数。
After the data structures, state variables, and function definitions are in place, add the load_shadow_dynamics function at line 3163.
在数据结构、状态变量和函数定义就绪后,请在第3163行中添加load_shadow_dynamics函数。
The first line connects the cb_delete function to the delete-event signal on the window object.
第一行把cb_delete函数连接到window对象的delete - event信号。
The first line in the loadGrid function specifies the options for the LiveGrid.
loadGrid函数中的第一行指定LiveGrid的选项。
Similarly, the second line connects the cb_button_click function to the clicked signal on the button object.
类似地,第二行把cb _ button_click函数连接到button对象的clicked信号。
The next line registers the retrieveByType function so that it is exposed as a Web service operation.
下一行注册 retrieveByType函数以将其公开为Web服务操作。
The line function takes four arguments, representing the points between which a line is drawn.
line函数接受四个参数,代表的是要在其间绘制线条的点。
The first line of this function delegates its dirty work to the rule_to_abstract function.
函数的第一行将脏活都委托给了rule_to_abstract函数。
Every HTML page turns into a small PHP script with a skimpy line with the date function tucked in somewhere.
每个HTML页面都变成一个只有有限几行的小php脚本,日期函数隐藏在某个地方。
In Listing 7, you display the first line of the offending function.
在清单7中,显示正在处理的函数的第一行。
应用推荐