第一,如果你为方法参数选择了好的名字,那么你对那些函数的调用事实上为每一个参数记载了一个名字。
First, if you choose good names for the method arguments, then your calls to those methods document each argument with a name.
比如,你可以为主机服务器的名字定义参数,这样你也可以将同样的脚本应用到若干台主机上。
For example, you could define parameters for the server host name so you could use the same script on multiple hosts.
因此,您需要知道应用程序的名字以管理部署应用程序的环境(产品环境或者测试环境),它们的连接参数,主机等等。
Therefore, you need to know the name of the applications to manage, the environment (production or test) that they are deployed to, their connection parameters, hosts, and so on.
调用这个程序会显示所调用的第一个参数是该程序的名字。
Invoking this application shows that the first argument invoked is the name of the program.
注意类名字后面的参数列表。
提要源输入组件的逻辑只是简单地从文件中读取,而文件的名字则以函数输入参数的形式传递。
The logic in the feed sources input component simply reads from a file, whose name is passed as a function input argument.
每个方法有一个名字、若干参数和一个返回值。
Each method has a name, a number of parameters, and a return value.
迁移工具通过分析HTML文件的名字(作为参数传入)来决定ID。
The migration utility determines the ID by examining the name of the HTML file (which should be passed in as a parameter).
签名包含了类型名字,参数列表及其类型,以及方法的返回值。
The signature includes the type name, the list of parameters with types, and the method's return value.
相反,操作上输入与输出的名字,会标上范围内背景标识符(拥有活动的类)中的参数、变量或者结构性特性。
Instead, the names of the input and output pins on the actions are labeled by a parameter, variable, or structural feature in the context classifier (the class owning the activity) that is in scope.
你唯一要加入到函数原型中的东西,是有三个东西,一,函数的名字,返回值,和它的参数。
The only thing that you have to put in the function prototype, again, is three things; one, the name of the function; the return value; and its arguments.
第三个参数是输出数组的名字,第四个是输出数组中的偏移。
The third parameter is the name of the output array, and the fourth is an offset into the output array.
该列就是团队区域的名字,参数将其作为标签使用。
This column is the name of the team area, to be used as the label for the parameter.
第二个参数是个字符串,用于指定审核源的名字。
The second parameter is a string that allows you to indicate the name of the audit source.
第一个参数是保存菜单的对象;第二个参数是菜单对象的名字,它是从XML中获得的。
The first argument is the object that holds the menu; the second argument is the menu object's name, taken from the XML.
你注意到了吗,我们两次把i作为一个参数名字,第一次是在factorial方法里,然后是在嵌套的fact方法里。
Did you notice that we use I as a parameter name twice, first in the factorial method and again in the nested fact method?
对于很多python包来说,要安装这些包,需要做的就是将这些包的名字作为一个参数传递给ez_setup . py或easy_install。
For many Python packages, all you need to do to install them is pass their name as a parameter to ez_setup.py or easy_install.
正如你所看到的,ShowTimerEventFired方法采用当前时间和当前线程名字作为参数。
As you can see, the ShowTimerEventFired method takes the current time and current thread name as arguments.
在该例中,我使用了Aspect j通配符符号来表示方法,没有考虑名字、类型、参数等因素。其他维中的投射与此类似。
In this example, I've used AspectJ wildcard notation to represent methods without consideration for name, type, argument, etc. Projections into other dimensions would work similarly.
这里我在自己的VerboseEditor中派生了ExprEditor子类,重写了三个基本的类方法——它们的名字都是edit,但是有不同的参数类型。
Here I subclass ExprEditor in my own VerboseEditor, overriding three of the base class methods — all named edit , but with different parameter types.
脚本自动添加 .pcv 扩展名为程序的名字,而且忽略无效参数的可能性。
The script automatically appends the .pcv extension to the program name, and it ignores the possibility of invalid parameters.
这意味着在pseudo中定义的少数函数的参数名与手册页中的规范化名字不同。
This means that a few functions are defined in pseudo with argument names differing from the canonical names in the man pages.
要创建一个SOAP消息,您可以使用一个值为我的名字 “Jinwoo” 的参数 “parameters”调用服务 “hello”。
To build a SOAP message, you can invoke the service "hello" using a parameter "parameters" with "Jinwoo" that happens to be my name.
因为我们在每一个参数声明前放置了val关键字,它们会被自动地转换为有同样名字的只读的字段,并且伴有同样名字的公开读取方法。
Because we put the val keyword before each parameter declaration, they are automatically converted to read-only fields with the same names with public reader methods of the same name.
这个程序是用三个参数调用的:要使用的上下文工厂、providerURL和包含要查询的名字的字符串。
This program is invoked with three parameters: the context factory to be used, the provider URL, and the string containing the name to look for.
设置ConfigurationMetaObject参数为适配器元对象的名字。
Set the ConfigurationMetaObject parameter to the name of the adapter meta-object.
每个从command模式中建立的command类都会把信息写进日志,包括command类的名字或者模式中的任何参数信息。
Every command class created from the command pattern would write information to the log. This can include the name of the command class or any parameterized information in the pattern.
在本例中,代码显示了如何将方法参数传递给Globalize插件(请参看参考资料中的链接)所提供的_方法(是的,这个方法的名字就是“_”)。
In this case, the code shows how to pass through the method parameters to the _ method (yes, the method is actually named "_") provided by the Globalize plugin (see Resources for a link).
提示:您要一直使用- e命令行参数来指定想要执行环境的名字。
Tip: Always specify the name of the environment on which you want to execute actions by using the -e command line parameter.
清单3指出类目名,并利用cmtitle参数将此名字传递给API。
Listing 3 specifies the name of a category and passes the name to the API using the cmtitle parameter.
应用推荐