Attributes can also define optional arguments, called named arguments.
自定义特性也可以定义可选参数,称之为命名参数。
Named arguments can also be used with properties that have additional arguments.
命名参数也可以与带有附加参数的属性一起使用。
The getopt UNIX utility scans the positional parameters for the named arguments you specify.
UNIX实用程序getopt扫描位置参数以获得您指定的命名参数。
Attributes can also define optional arguments, which are also known as named arguments.
属性也可以定义选择性引数,也称为具名引数。
Function#argumentNames returns an array of strings representing the function's named arguments
Function#argumentNames返回一个字符串数组,它代表函数的命名参数
Other enhancements include the ability for CALL statements to take named arguments in any order.
其他增强包括call语句能够以任意次序接受有名称的参数。
Using named arguments, one can selectively change values for the copied instance, as shown on the Scala website.
借助于具名参数,我们可以有选择地修改被拷贝实例的值,请参看scala站点以深入了解该主题。
Basically, setup takes a bunch of named arguments, including a list of things to install (besides py_modules, there might be packages or ext_modules or some other things).
基本上,setup函数采用一组包含一列需要安装的东西(除py _ modules外还可能有packages或ext _ modules或其它东西)的已命名的变量。
Scala 2.8 also offers new language features, like the new named and default arguments. Named arguments look like assignments to the names of the called method's formal parameters
Scala 2.8还增加了新的语言特性,如新的具名与默认参数。
The server unwinds the envelope and executes the named methods with the passed arguments.
服务器打开信封并使用传入参数执行指定的方法。
With the required parameters, variable number and keyword arguments can be used as well for positional and named parameters.
有了所需的参数,变量数和关键字参数还可以作为位置参数和名称参数使用。
SPE programs that need more than one argument will generally build a structure containing named members and pass that over to be used the way arguments normally would be.
需要多个参数的SPE程序通常会构建一个包含指定成员的结构,并像通常使用参数那样来传递使用这个结构。
Named parameters are especially useful for calling stored procedures that have many arguments and some of those arguments have default values.
在调用具有许多参数,而且其中一些参数有默认值的存储过程时,命名参数特别有用。
The arguments for a query operation are the JPQL string or moniker of a predefined named query.
查询操作的参数是JPQL字符串或预定义名称查询的别名。
Named and default arguments work hand in hand; one can pick a certain parameter by its name and use defaults for the others
具名与默认参数经常搭配使用,我们可以根据参数名称为参数赋值,同时对其他参数使用默认值,如下代码片段所示
We'll see another useful example of named and default arguments when we discuss case classes in the section called "case classes" in Chapter 6, Advanced Object-Oriented Programming in Scala.
我们会在《第6章-Scala高级面向对象编程》中的“CaseClass(案例类)”中看到另外一个使用命名参数和默认参数的例子。
In Listing 7, the populator bean takes two arguments in its constructor, as well as a property named groupRoleAttribute.
在清单7中,populatorbean的构造函数包括2个参数,以及一个grouproleattribute属性。
The first block of code is obviously a function declaration, defining a function named ToggleSyntax , which takes no arguments.
显然,第一个代码块是一个函数声明,定义了名为ToggleSyntax的函数,它没有包含任何参数。
The first empty pair of parentheses denotes that I want to call the method named effectFinished() that takes no arguments.
第一对空的括号指明将调用不带参数的effectFinished()方法。
The redirect arguments are stored in a Map named redirectArgs.
redirect参数存储一个名为redirectArgs 的Map 中。
Use named and optional arguments in conjunction with COM methods (gives simpler use of Excel, Word APIs etc.)
使用命名的及可选的参数同COM方法交互(让使用Excel、Word的API更简单等等)。
In this case, the function may be called with as many arguments as you wish, and those values are collected into a single variable: an array named a: 000.
在本例中,函数可以使用任意数量的参数调用,并且这些值被收集到一个单一变量中:一个名为a: 000的数组。
You can also set properties on an object during the construction of the object by using the property names and assigning values just as you use named constructor arguments.
通过像使用命名构造函数参数一样使用属性名称并赋值,您也可以在对象构造过程中为对象设置属性。
You can use an active pattern definition to define the rules for determining which of the named partitions the values given as arguments belong to.
可以使用活动模式定义来定义规则,以便确定作为参数给定的值所属的命名分区。
Do not define a parameter with both named and positional arguments.
不要同时以具名引数和位置引数来定义参数。
With named and optional arguments, you specify values only for the parameters that are required for your project.
有了命名实参和可选实参,则只需为项目所需的形参指定值。
With named and optional arguments, you specify values only for the parameters that are required for your project.
有了命名实参和可选实参,则只需为项目所需的形参指定值。
应用推荐