• 最近我写过一篇关于在Python中实现模糊子串匹配的算法的文章。

    I recently wrote about an algorithm for fuzzy matching of substrings implemented in Python.

    youdao

  • 复杂查询是通过组合直接查找和对所选父节点的汇聚及目标子串搜索来完成的。

    Complex queries are serviced by a combination of direct lookups, convergences against selected parent nodes, and targeted substring searches.

    youdao

  • Rope实现通常也将延迟对大型子串操作的求值,它的作法是引入子串节点。

    Rope implementations also often defer evaluation of large substring operations by introducing a substring node.

    youdao

  • 还可以使用string函数来报告字符串属性,如子串的长度或位置,例如

    You can also use string functions to report string attributes such as length or position of a sub-string, for example

    youdao

  • 较理想的做法是,字符串有一个如error或与之相似的子串(见蓝色粗体的语句),这个子串允许测试者很快地在输出文件中查找到错误。

    Ideally, the string of characters should have a substring such as error or something similar (see the statement in bold blue), which will allow the tester to quickly find the error in the output file.

    youdao

  • 原因是Rope使用专门的类来表示延迟子串(lazy substring),因此使普通 rope 的charAt的实现保持简单。

    The reason is that Rope represents lazy substrings using a dedicated class, allowing the implementation of charAt to remain simple for regular ropes.

    youdao

  • 子序列中的字符与子字符串中的字符不同,它们不需要是连续的。

    The characters in a subsequence, unlike those in a substring, do not need to be contiguous.

    youdao

  • 代码使用子字符串过滤出这些文件。

    The code filters these out using substrings.

    youdao

  • 长度参数指定了所需子字符串的长度。

    The length argument specifies the length of the desired substring.

    youdao

  • 这种形式的字符串截断非常简便,只需用冒号分开来指定起始字符和子字符串长度。

    This form of string chopping can come in quite handy; simply specify the character to start from and the length of the substring, all separated by colons.

    youdao

  • 它可以创建任意长度的单词前缀索引和可变长度的中缀子字符串的索引。

    It can create indexes of word prefixes of arbitrary length and indexes of infix substrings of varying lengths.

    youdao

  • 提取子字符串并操作字符串的多个部分。

    Extracting substrings and manipulating parts of the string.

    youdao

  • “*”是通配符,可用来支持子字符串匹配,比如 com.infoq.*.*。

    The * character is used to indicate wildcards, and can be used to support substring matching as in com.infoq.*.*.

    youdao

  • 当从原始的输入数据中提取字符串时,试着从原始字符串返回一个子字符串,而不是创建一份拷贝。

    When extracting strings from a set of input data, try to return a substring of the original data, instead of creating a copy.

    youdao

  • 对于这些情形,可添加一条异常规则,将部件指示器处理为令牌中的子字符串。

    For such cases, an exception rule can be added for processing part indicators as substrings in tokens.

    youdao

  • 然后,split方法返回一个数组,其中保存了根据空格字符将给定字符串分割成子字符串的结果。

    The split method then returns an array holding the strings that resulted from separating the given string into substrings, as delimited by the space character.

    youdao

  • toCollection方法以空格来分割字符串,然后返回一个包含这些子字符串的Array(数组)。

    The toCollection method splits a string on spaces and returns an Array containing the substrings.

    youdao

  • 即使在这样一小段脚本中,您也可以找到一些参数扩展,包括长度、子字符串、模式匹配和模式替换。

    You'll recognize several parameter expansions, including length, substring, pattern matching, and pattern replacement in even this short piece of script.

    youdao

  • cut属性指出是否在继续之前从请求URL中删除匹配的子字符串片段。

    The cut attribute indicates whether to delete the matched substring segment from the request URL before proceeding.

    youdao

  • 第二行的第一个重写条件表明:下面的规则仅适用于HTTP请求报头中的user - agent字符串包含子字符串msie的情形。

    The second line, the first rewrite condition, indicates that following rules only apply when the user-agent string in the HTTP request header contains the substring MSIE.

    youdao

  • 第一个参数是子字符串,第二个参数是搜索字符串,可选的起始位置可以提供作为第三个参数。

    The first argument is the substring, the second argument is the search string, and an optional starting position can be supplied as a third argument.

    youdao

  • 感兴趣的类别可以是任何有效的Wikipedia类别(或者甚至某个Wikipedia类别的任何子字符串)。

    The categories of interest can be any valid Wikipedia category (or even any substring of a Wikipedia category).

    youdao

  • 然后,bash 取得MYVAR,找到从字符串 "foodforthought.jpg"开始处开始、且匹配通配符 "*fo"的最长 子字符串,然后将其从字符串的开始处截去。

    Then, bash took MYVAR, found the longest substring from the beginning of the string "foodforthought.jpg" that matched the wildcard "*fo", and chopped it off the beginning of the string.

    youdao

  • 它查看与第一个例子相同的子字符串系列,但是bash从初始字符串除去最短的匹配,然后返回结果。

    It checks the same set of substrings as our first example did, except that bash removes the shortest match from our original string, and returns the result.

    youdao

  • 在第1部分的图13可以看到,cn属性类型有一个叫做SUBSTR的字段,它定义了子字符串匹配的匹配规则。

    You saw in Part 1, Figure 13 that the cn attribute type has a field called substr, which defines the matching rules for substring match.

    youdao

  • 第二条命令 /usr/local/bin/search --config /usr/local/etc/sphinx.confwind在两个零件描述中找到了子字符串 wind。

    The second command, /usr/local/bin/search --config /usr/local/etc/sphinx.conf wind, found the substring wind in two part descriptions.

    youdao

  • 第二个for循环还显示了如何将string分割为子字符串的list(使用空格字符来指示子字符串的边界)。

    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).

    youdao

  • 清单9.shell参数值的子字符串。

    Listing 9. Substrings of shell parameter values.

    youdao

  • 使用文本索引使文档搜索的效率大大提高,因为不需要像进行子字符串匹配时那样在查询时检查文本数据。

    Using a text index makes document search much more efficient, as the text data does not need to be examined at query time like it is done with sub-string matching.

    youdao

  • 您将获得一串传入的元素,将它们作为正在创建的Service元素的子节点。

    You take a sequence of passed in elements and make them child nodes of the Service element that you are creating.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定