D {string}- string字符串是strftime函数的格式化参数。
D {string} - string is formatted using the strftime function.
首先,可以采用与处理复杂属性相同的方法;可以将所需的多个参数序列化在一起,形成一个字符串类型的参数。
First, you can take the same approach as you did with properties; you can serialize the required arguments together into a single type of string.
这类函数始终需要调用者为其提供一个字符串来进行格式化,因此应当使用命名参数。
Such a function would always require the caller to supply the string to be formatted, so that parameter should be explicitly named.
除了格式化字符串参数,所有其他的参数都必须用一个元组(tuple)或是一个字典(dictionary)进行挤压。
Exempting the format string argument, all other arguments must be squeezed in with either a tuple or a dictionary.
为此,我们使用了dojo的实用工具dojo .string . substitute,它接收字符串的模板和参数化的值并用给定的值替换这些占位符。
For this we use dojo's utility dojo.string.substitute, which receives a template for a string, with parameterized values, and substitutes the placeholders in the templates with the given values.
发送一个格式化字符串和参数(还可能有Locale)、并使用在格式化字符串中指定的格式转换参数。
Send a format string and arguments (with a possible Locale) and use what is specified in the format string to convert the arguments.
创建了formatter类后,用格式化字符串和参数调用其for mat方法。
After creating a Formatter class, you call its format method with format strings and arguments.
上面代码中的格式化字符串 %1$tB告诉程序使用第一个参数并打印date对象的完整月名。
The %1$tB formatting string in the code above tells the program to use the first argument and print out the full month name for the date object.
在第22行上,通过使用两个参数来实例化site变量:第一个参数包含对OleFrame的引用,第二个参数包含标识activex控件的字符串。
Line 22 instantiates the site variable using two arguments: the first argument contains a reference to an OleFrame, and the second argument contains a string that identifies the ActiveX control.
也就是说,在Vimscript中,printf并不会输出其数据参数列表的格式化后的版本;它会返回一个字符串,其中包含了数据参数列表的格式化后的版本。
That is, in Vimscript, printf doesn't print a formatted version of its list of data arguments; it returns a string containing a formatted version of its list of data arguments.
首先调用f的模板化版本,第一个参数的类型是字符串,作为大小可变的参数提供字符和双精度值。
The first time around, the templated version of f is called, with a string as the first argument type, and the character and double are packed off as the variable size argument.
在c语言中,一个常见的错误是将攻击者的数据传递到格式化字符串参数中(例如printf(3)的第一个参数)。
In c, a common mistake is to pass attacker data into format string parameters (such as the first parameter of printf (3)).
例如,Python有一个内置的“ % ”操作符,它就执行格式化操作(“ % ”前面的参数就是指定的格式),因此要确保攻击者不会控制这个格式,也就是说使用常量作为字符串的格式。
For example, Python has a built-in "%" operator that does formatting (the argument before "%" is the format), so make sure the attacker can't control the format, say by making it a constant.
函数随带一个格式化字符串和一个可变数目的参数。
The function takes a format string and a variable number of arguments.
输入格式化源字符串数据所需的参数。
Enter the parameters required to format the source string data.
格式化字符串是一个字面量文本,内嵌了一些命令指示,把其后的参数转入文本中。
The format string contains literal text, embedded with directives, for converting the trailing list of arguments into text.
请求序列化是为了从URL字符串创建出编码后的参数,或者是序列字典,或者是HTTP实体。
Request serializers create requests from URL strings, encoding parameters as either a query string or HTTP body.
连接字符串包含作为参数从数据提供程序传递到数据源的初始化信息。
A connection string contains initialization information that is passed as a parameter from a data provider to a data source.
输入格式化源字符串数据所需的参数。
String contains non-numeric character(s). Please enter a valid number.
指定在初始化应用程序域时调用的回调方法,以及传递回调方法的字符串实参数组。
Specifies a callback method that is invoked when the application domain is initialized, and an array of string arguments to pass the callback method.
指定在初始化应用程序域时调用的回调方法,以及传递回调方法的字符串实参数组。
Specifies a callback method that is invoked when the application domain is initialized, and an array of string arguments to pass the callback method.
应用推荐