Turn a query string into keyword arguments.
将查询字符串转变为关键字参数。
Here's another example that combines positional parameters and keyword arguments.
下面是另外一个综合了位置参数和关键字参数的例子。
If you don't like keyword arguments, you can define a new method type that doesn't have them.
如果你不喜欢关键字参数,你可以定义一种新的不包含关键字参数的方法类型。
The CherryPy Web server automatically transforms a URL's query string into a set of keyword arguments.
CherryPyWeb服务器自动将URL的查询字符串转变为一组关键字参数。
Keyword arguments on functions and methods increase the self-documentation and flexibility of your code.
函数和方法的Keyword参数提高了代码的自解释性和灵活性。
Return a new dictionary initialized from an optional positional argument or from a set of keyword arguments.
返回一个新的由可选的位置参数或一组关键字参数初始化的字典。
The function advise allows a large number of keyword arguments that configure the purpose and role of a class so advised.
advise函数支持用于配置那些建议的类的目的和角色的大量关键字参数。
With the required parameters, variable number and keyword arguments can be used as well for positional and named parameters.
有了所需的参数,变量数和关键字参数还可以作为位置参数和名称参数使用。
It is composed of a pointer to the GObject that the method is being called on, an array of arguments, and an array of keyword arguments.
它由正在对其调用方法的GObject的指针、参数数组和关键字参数数组组成。
Notice that now in a class definition, keyword arguments are allowed after the list of base classes—generally speaking, class Foo(*bases, **kwds): pass.
请注意,现在,在类定义中,关键字参数被允许出现在基类列表之后 —通常来讲,即class Foo(*bases, **kwds): pass。
We give it the list of keyword arguments we understand and all of the arguments we were given, and it will set the values pointed to by the final arguments.
我们向它提供所知道的关键字参数以及所有给定参数的列表, 它将设置最终参数指向的值。
In general, an argument list must have any positional arguments followed by any keyword arguments, where the keywords must be chosen from the formal parameter names.
通常,参数列表中的每一个关键字都必须来自于形式参数,每个参数都有对应的关键字。
Functions in Vimscript are defined using the function keyword, followed by the name of the function, then the list of parameters (which is mandatory, even if the function takes no arguments).
Vimscript中的函数使用function关键字定义,后跟函数名,然后是参数列表(这是强制的,即使该函数没有参数)。
That means that they should include the abstract keyword, optionally a visibility modifier, the function keyword, and an optional list of arguments in parentheses.
这意味着,抽象方法应包括abstract关键字、可选的可见度修改符、function关键字,以及圆括号内可选的参数列表。
Keyword: Rather than placing only the arguments that precede a command, this option places all arguments in the environment for a command, which can be viewed with the set command.
keyword:此选项将命令的所有参数放入环境中,而不仅仅放入命令之前的参数,使用set命令可以查看这些参数。
Arguments passed to higher-order functions, and then passed on as arguments to a closure's use keyword also retain their values.
参数传递给高阶函数,然后作为参数传递给closure的use关键字,仍保持其值。
Providing the ability to use a keyword argument is not essential, but it can make code with lots of arguments a lot clearer, and is not much extra work.
提供使用关键字参数的能力不是必需的,但它可以使带有许多参数的代码变得清楚许多,而且不需要大量的额外工作。
You can also create functions and methods with keyword-based arguments — a nice break from the standard positional arguments you see in PHP.
您还可以创建使用关键字作为参数的函数和方法 —这与 PHP中的标准位置参数迥然不同。
You can also create functions and methods with keyword-based arguments — a nice break from the standard positional arguments you see in PHP.
您还可以创建使用关键字作为参数的函数和方法 —这与 PHP中的标准位置参数迥然不同。
应用推荐