这些函数处理或返回字符串。
它返回字符串值ibm。
返回字符串的副本删除前导空白。
Return a copy of the string s with leading whitespace removed.
无论您将哪种数据格式传入这些函数,它们将始终返回字符串。
No matter what data format you put into these functions, they will always return a string.
该方法所做的事情就是返回字符串,用作下一个页面的导航结果。
All this method does is return a string that is used as a navigation outcome for the next page.
函数的作用是:返回字符串所使用字符的信息的次数。
The count_chars function returns how many times an ASCII character occurs within a string and returns the information.
如果不匹配,那么就会返回字符串None found 。
If no match is found, then the string None found! Is returned.
函数的作用是:返回字符串键名全为小写或大写的数组说明。
The array_change_key_case function returns an array with all array KEYS in lower case or upper case.
注意因为Html.Action辅助方法返回字符串,必须要等号"="。
Notice that because the Html.Action helper method returns a string, the equal sign (=) is required.
修改getMsg控制器动作以获取字符串参数并返回字符串值。
Modify the getMsg controller action to take a string parameter and return a string value.
不过它通过删除不同的关键字来显示使用此函数的某些可能性并且返回字符串的总字数。
It shows some potential for using the function but by removing the distinct keyword, it returns the total word count of a string.
如果客户机的加密过的返回字符串与本地加密的字符串匹配,则运行关闭命令。
If the client's encrypted return string and the locally encrypted string match, the shutdown command is run.
值得一提的是,如果结果集返回xml字符串,应该用花括号将返回字符串中的变量包围起来。
One thing that is worth noting: when you return a string of XML as your result set, you should surround the variables in your return string within curly braces.
如果值不是数字(譬如,假设它是number (xyz)),则函数返回字符串NaN(表示不是数字)。
If the value isn't a number (say it's number (xyz), for example), the function returns the string NaN (not a number).
developerapi类将定义获取两个字符串参数并返回字符串值的developer方法。
The DeveloperApi class defines a developer method that takes two string parameters and returns a string value. The developer_api.rb.
这里的split方法处理包含指定分隔字符(在这里是逗号)的输入字符串(字符串类型),返回字符串的列表。
Here, split is a method that processes an input string (of the type string) that contains a specified delimiter character (in this case a comma) and returns a list of strings.
在类中定义方法echo,该方法接受字符串作为参数并返回字符串作为结果(类中的函数和sub被称为方法)。
Defines a method in the class called Echo that accepts a string as a parameter and returns a string as a result (functions and subs in classes are referred to as methods).
例如,对于DateTime小部件,它返回字符串 up_color=green&up_firstDay=0。
For instance, for the Date Time gadget, it returns the string up_color=green&up_firstDay=0.
这种操作符,会返回字符串中从第『n』个到第『m』个的字符,包含开头的第『n』个,但不包含末尾的第『m』个。
The operator [n:m] returns the part of the string from the "n-eth" character to the "meth" character, including the first but excluding the last.
一些反射方法,例如instance_variables和constants,不再返回字符串数组,而是返回符号数组。
Reflection methods like instance_variables, and constants now return arrays of.
这么做会返回一个缓冲了的文本文件;read和readline会返回字符串(请注意,Python3内的所有字符串都是unicode)。
Doing so returns a buffered text file; read and readline return strings. (Remember that all strings in Python 3 are unicode.)
如果输出定义包含返回字符串的输出表达式,它们会生成VARGRAPHICS (255)forDB 2类型的列,或者基于数据库类型的等效列。
If the output definition contains output expressions returning a string, they produce columns of type VARGRAPHICS (255) for DB2, or an equivalent type depending on the database type.
HelloMessageApi 类将定义 hello_messageAPI方法,该方法将获取两个字符串参数,名字和姓氏,并返回字符串值。
The HelloMessageApi class defines a hello_message API method that takes two string parameters, firstname and lastname, and returns a string value. The hello_message_api.rb script is shown below.
如SQL标准中所述,此函数返回输入字符串的八位字节长度或字节长度。
This function, as mentioned in SQL standard, returns the length of the input string in octets or bytes.
它将按需返回在输入字符串中检测到的各个匹配项。
It will return each match detected within the input string as requested.
这个方法完全忽略所有可用的编码信息,所返回的字符串总是用utf - 16编码的。
This method completely ignores all the encoding information available, and the returned string is always encoded in UTF-16.
至此,我们仅处理过简单的参数和返回值:字符串、整型、简单数组等等。
So far, we have dealt only with simple parameters and return values: strings, integers, simple arrays, and the like.
由此函数返回的任何字符串都会被打印到屏幕。
Whatever string is returned by that function is then printed to the screen.
然后此方法从网站返回的字符串中提取最新的交易价格,并将数据返回调用程序。
The method then extracts the last trading price from the string returned by the Web site, and returns that value to the caller.
然后此方法从网站返回的字符串中提取最新的交易价格,并将数据返回调用程序。
The method then extracts the last trading price from the string returned by the Web site, and returns that value to the caller.
应用推荐