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程序通常会构建一个包含指定成员的结构,并像通常使用参数那样来传递使用这个结构。
The request URI can be retrieved as well as the argument values of named parameters.
我们可以获得请求的URI以及参数的名值对。
This does the same as example 1, but in this case, selpg is reading its stdin, which has been redirected by the shell/kernel to come from "input_file" instead of an explicitly named filename argument.
该命令与示例1 所做的工作相同,但在本例中,selpg读取标准输入,而标准输入已被shell/内核重定向为来自“input_file”而不是显式命名的文件名参数。
We defined a method named double that takes an Int argument and returns Unit.
我们定义了一个方法叫double,接受一个Int参数,返回unit。
removeAttr(), which takes an attribute name as an argument, will remove the named attribute from all of the currently selected elements.
removeAttr()以一个属性名作为参数,它将从所有当前选中的元素中移除具有该名称的属性。
It expects an argument named event, takes three actions by calling three utility functions, and then returns Pause as the name of the next state.
它需要一个名为event的参数,通过调用三个实用程序函数来执行三个操作,然后返回Pause作为下一个状态的名称。
For example, the CalculatorHandler implements a method named Info , which takes a string argument and writes it to the application log.
例如,Calculator Handler实现一个名为Info的方法,后者接受一个字符串参数并将之写到应用程序日志中。
Syntactically, it is singled out in Python by being named before the dot — everything following the dot, method name, and left parenthesis is just an argument.
从语法上说,在Python中通过在点之前指定名称来挑选对象-跟在点、方法名和左括号后面的只是一个参数。
When executing the script containing getopt, named opttest, using a valid argument of -x-or --xxxxx, getopt recognizes the switch and executes the code within the case switch
在执行包含getopt(称为opttest)的脚本时,如果在 -x 或 --xxxxx 中使用有效的参数,getopt 会识别出开关并执行 case 开关中的代码
Because map takes one argument, a function, we can use the "placeholder" indicator _ instead of a named parameter.
因为map接受一个参数,即一个函数,我们可以用_占位符来替代有名参数。
The method signature has a single loosely typed DataObject argument named user, and is up to the developer to know which features the input DataObject will contain at runtime.
此方法签名包含单个松散类型化的DataObject参数,名为user,由开发人员确定运行时输入DataObject将包含哪个功能。
A friend function named spacefriend, which is a friend of class space, and which takes the class object as an argument and prints the value of its variable x.
名为spacefriend的友元函数,它是space类的友元,它的参数是类对象,输出类对象的x变量的值。
A button has an argument named onclick whose value is a Callback, a snippet of imperative application logic to be executed when the event occurs. In this particular case two things happen.
按钮拥有名为onclick的参数,它的值是Callback,当事件发生的时候,就会执行一段命令式的应用程序逻辑。
Each declaration is actually calling a method named Value that takes a string argument.
每一个声明实际上都调用了一个名为Value的方法,它接受一个字符串参数。
Where the third argument in the example above is the process flow data field named CaseState.
上述示例中的第三个参数是流程流数据字段CaseState。
For example, the toUpper service takes a single parameter named operand and returns the upper case transformation of the resource identified by the URI supplied as the argument.
例如,toUpper服务带有一个叫做operand的参数,并且返回参数uri所表示的资源的大写形式。
In the special rule used for header file scanning, variable values are first looked up on the target named by the rule's first argument (the source file being scanned).
在用于头文件扫描的特殊规则中,变量的值首先在由规则的第一个参数所给出的名字的目标(被扫描的源文件)上进行查找。
In a small town in Spain, a man named Jorge had a bitter argument with his young son, Paco. Next day Jorge discovered that Paco's bed was empty -he had run away from home.
在西班牙的一个小镇上,一个叫乔治的人和他的年轻儿子帕克激烈地争吵了,第二天乔治发现帕克的床是空着的- - -他已经离家出走了。
Named parameter array cannot be bigger than argument array.
命名的参数数组不能大于变量数组。
When initializing a named attribute argument, the value must be a compile time constant.
初始化具名的属性引数时,值必须是编译时期常数。
The optional argument represents a fallback value, which is used if the named attribute is missing, or its value cannot be parsed into the given type or is invalid/out-of-range for the property.
可选参数表示应变值,如果命名属性用于失踪,或它的价值不能被解析到特定类型或属性是无效或超出范围。
The optional argument represents a fallback value, which is used if the named attribute is missing, or its value cannot be parsed into the given type or is invalid/out-of-range for the property.
可选参数表示应变值,如果命名属性用于失踪,或它的价值不能被解析到特定类型或属性是无效或超出范围。
应用推荐