To avoid the overhead associated with using a table, the application could encode the list of items in some string format and have the procedure decode the string to extract the items.
要避免使用表的相关开销,应用程序可以一些字符串格式对项目列表进行编码,并使存储过程对该字符串进行解码以便提取项目。
Going back to Listing 14, once we have the list of entries, we then use some simple string concatenation to create an XML document.
返回到清单14,在拥有条目列表之后,使用某个简单的字符串连接来创建XML文档。
The real benefit here is that to change or expand the list of supported terms or cities you can just update the string array.
主要的优点在于如果要修改或扩展支持的项或城市列表,只需要修改字符串数组即可。
To the list of string variables already defined on the CmdLineParser class.
将其置于已经在cmdlineparser类中定义的字符串变量的列表中。
Dependencies: the list of String objects containing the project names to add to the project dependencies list.
一组应该被添加到项目依赖关系列表中包含项目名称的字符串对象。
Execute the ps -ef | grep virtual command to list the processes containing the string virtual.
执行ps—ef |grepvirtual命令来列出包含虚拟字符串的进程。
Line 1 uses splitlines(), a string function, to separate the list of servers, and then these values are stored as a variable, appServers.
第 1 行使用一个字符串函数splitlines() 分隔服务器列表,然后将这些值作为一个变量appServers 进行存储。
It implicitly casts the String object type to an object type (for the parameter list).
隐式地把String对象类型转换成object类型(用于参数列表)。
The call to filter converts the string that is passed as its second argument to a piece of code, which it then applies to each element of the list that is passed as its first argument.
调用filter将作为第二个参数传递的字符串转换成一段代码,然后将该代码应用到作为第一个参数传递的列表的每个元素。
If any of the parameters are of type String, I add the lowercase version of it to a new arguments list, and leave the other arguments intact.
如果有任何参数属于string类型,则将该参数的小写版本添加一个新的参数列表中,并保留其他参数不变。
The getenv() function searches the environment list for a string that matches the string pointed to by name.
getenv()函数会在环境列表中搜索与名称字符串相匹配的字符串。
In almost every case (the notable exception being string ), a list function applied to a dictionary behaves as if the function had been passed a list of the values of the dictionary.
几乎在所有的情况(最显著的例外是string)下,一个应用到字典的列表函数的行为就像该函数收到了该字典的一个值列表。
Suppose we have a list of strings and want to see whether a certain string is contained in that list.
假定我们拥有一个字符串列表,并且想要知道某个特定的字符串是否包含在那个列表中。
You will also learn how to limit the user's choice of search parameters by placing a combo box on the page: this presents a list of selections to the user instead of allowing them to type in a string.
通过在页面上放置一个组合框,您可以限制用户对搜索参数的选择:组合框将向用户提供一组固定的选择,而不是任由他们直接输入一串字符。
The previous technique will generate a unique identifier for any user-supplied character string; however, it is somewhat cumbersome to issue this list of commands every time an EWU value is needed.
前面的技术可以为任何用户提供的字符串生成惟一的标识符;但是,在每次需要ewu值时都执行这一系列命令比较麻烦。
Enter ra word or phrase to search all text or select a previous search string from the drop-down list.
输入一个词或词组以搜索所有文本,也可从下拉列表中选择以前的搜索过的字符串。
When the list of fields is complete, you only need to add the FROM string, followed by the name of the database table, which can still be found in the TListBox control.
在完成对字段列表的操作之后,您惟一需要做的就是添加FROM字符串,该字符串后面是数据库表的名称,您仍然可以在TListBox控件中找到该表。
Ndots: : If a domain with or more periods is found, DNS attempts to resolve the string first without appending the search domain list.
如果找到包含或更多句点的域,DNS将尝试首先解析该字符串,而不附加search域列表。
So, this means: : can be determined to be the global: : method, as opposed to a member method of (in this case) String; which in turn means you can build a list out of everything.
因此,可以将:认定为一个全局的:方法,与String的一个成员方法(本例中使用)相对;这又表示您可以对所有内容构建列表。
In_word_set: This routine USES hash to determine whether a particular string belongs to the user-supplied list, using one string comparison in the most common case.
in _ word_set:该例程使用hash确定某个字符串是否属于用户提供的列表,大多数情况下只使用一个字符串比较。
Modifying an item within a list is rather simple: You set the item's value appropriately, even to a different type, such as a string or another list.
修改list中的条目相当容易:您可以适当地设置条目的值,甚至设置成另一种不同的类型,如string或另一list。
More generally, the right side can be any kind of sequence (string, list or tuple). For example, to split an email address into a user name and a domain, you could write.
更普适的情况下,等号右边以是任意一种序列(字符串、列表或者元组)。比如,要把一个电子邮件地址转换成一个用户名和一个域名,可以用如下代码实现。
You aren't limited to passing a sequence directly into the constructor; you can also pass a variable that holds a tuple or a string into the list constructor.
您不仅能够将序列直接传递给构造函数,还可以将拥有元组或字符串的变量传递给list 构造函数。
Click Edit next to the String format drop-down list.
单击string format下拉列表旁边的Edit。
The comparison can be further controlled by specifying an optional list of attributes to be excluded from comparison and the style of comparison for String-valued attributes.
要进一步控制比较,可以指定不用于比较的可选属性,以及为值为String的属性指定比较方式。
This final example demonstrates how to use the len method as the argument to the range method to create a list of integers that can be used to access each character from the string individually.
这个最后的示例演示了如何使用len方法作为range方法的参数,创建可用于单独访问string中每个字符的整数list。
Evaluate is called with the XPath string passed into the method, the DOM tree you built in the class's constructor, and the constant indicating to return results as a list of nodes.
使用传递给该方法的xpath字符串调用evaluate,在类的构造函数中构建的dom树和常量指示将结果作为一组节点返回。
From this list, try to find a match for each parameter name, either in the route dictionary or in the URI query string.
根据这个列表,在路由字典或是在URI查询字符串中,试着为每个参数名找到一个匹配。
The second for loop also shows how to split a string into a list of substrings (using the space character to indicate the boundaries of substrings).
第二个for循环还显示了如何将string分割为子字符串的list(使用空格字符来指示子字符串的边界)。
How to order list of string based on matching alphabets occurrence?
如何基于匹配字母的字符串列表的顺序发生的?
应用推荐