A British astronomer was analyzing a spectrograph of sunlight, and he noticed a particular pattern of spectral lines that didn't match anything in the library.
一位英国天文学家在分析一台太阳光摄谱仪时,注意到一种特殊的光谱线模式,它与图书馆里的任何一种都不匹配。
You can precede it with a line number, range, pattern to match, or enclosed in slashes.
您可以在它前面附加行号、范围、要匹配或包括在斜杠中的模式。
It is surprisingly simple: the name itself differs, so we can use a simple pattern match on the name field.
令人惊奇的简单:只是名字上的区别,所以我们可在NAME域上使用一个简单的模式匹配。
To find these concepts in text, you can specify rules that define a pattern to match these concepts.
为了在文本中寻找这些概念,可以通过指定规则定义匹配这些概念的模式。
If you want to match a pattern multiple times within a character sequence, the above code snippets are a good place to start.
如果您想在一个字符序列中多次匹配一个模式,上面的代码片段是一个很好的起点。
When you know the pattern to name an object, you need to choose terms from the glossary models to match the pattern.
了解了对象命名所要求的模式之后,需要从术语表模型中选择词汇来匹配这个模式。
This function literal does a pattern match on the message instance to decide how to handle the message.
这个字面函数给消息做了一个模式匹配来决定它被如何处理。
The ? character means to match zero or one instance of the previous pattern element; the * character means to match zero or more of the previous element.
字符表示匹配前面模式元素的零个或一个实例,* 字符表示匹配前面元素的零个或多个实例。
Note in the evaluation, if the pattern is a bound variable, or the element of the pattern is a bound variable, then the result of the pattern match becomes a comparison.
注意,如果模式是绑定的变量,或者模式的元素是绑定的变量,那么模式匹配的结果就会变成比较。
Given a regex and a datum, a regex engine yields whether the datum matches a pattern and, if a match was found, what matched.
给定一个正则表达式和数据,正则表达式引擎将得到数据是否匹配模式及匹配内容(如果找到匹配)等结果。
Looking at the code, you can see that the regular expression pattern was set to match a line that contained 20-29%.
查看该代码,可以看到正则表达式模式被设置为匹配某个包含20- 29%的行。
You can search for strings in vi using the / command, specifying the pattern to match either as a literal string or as a regular expression.
在vi 中,可以使用 /命令搜索字符串,这需要以字面字符串或正则表达式的形式指定要匹配的模式。
If a pattern match is found, the connection is let in, or more precisely, TCPD dies and lets the real serving daemon take over.
如果找到匹配的模式,就允许连接,或者更准确地说,tcpd死亡,让真正提供服务的守护进程接管。
Note that evaluate returns a Double, which means that each case in the pattern match is going to have to evaluate into a Double value.
注意evaluate返回了一个Double,它意味着模式匹配中的每一个case都必须被求值成一个double值。
Thankfully, Scala treats exception handling as just another pattern match, allowing us to make smart choices when presented with a multiplicity of potential exceptions. Let's see this in action.
感谢scala实际上把异常处理作为了另外一种模式匹配,允许我们在遇到多样化的异常时能做出更聪明的决定。
This type of pattern match becomes extremely useful when working with Actors, as we'll see later on.
我们后面会看到,这种类型的模式匹配和Actor配合工作时会非常有用。
Our pattern match then looks for Alice and Bob by inspecting the values passed to the constructor of the Person case class.
然后,我们的模式匹配通过检查传入的Personcase类的值来查找Alice和Bob。
Since we are now using SQL SELECT statements, the restore_where argument changes from a Perl pattern match to the syntax of an SQL where clause.
因为现在使用的是SQLselect语句,所以restore_where自变量从Perl模式匹配改成SQL where子句。
One of the limitations in my original solution was that it reported only the match pattern when each template started and ended execution.
在我原先的解决方案中所存在的限制之一是,在每个模板启动,然后结束执行之后,它只报告match模式。
The topic exchange also takes the routing-key property of the message into account by performing a pattern match on it.
topic交换器用过模式匹配分析消息的routing-key属性。
Using the Filter Pushdown pattern, we would first match a pattern in the graph, then modify the tree at the point of the match. Here's the Filter Pushdown pattern to match.
我们将首先利用FilterPushdown模式来匹配图中的某个模式,随后在匹配的点对树进行修改。
The key to success with a socket wrench is pattern matching: The socket must match the nut.
成功使用套筒扳手的关键在于模式匹配:套筒扳手必须与螺母相匹配。
You might also want to change the names of various generic aspects of the pattern to match the language of the domain.
您还可能会希望更改模式的通用方面的名称,以与域的相应语言对应。
You may include a "default" case at the end of a pattern match, either using the underscore wild card character or a meaningfully-named variable.
你可以在模式匹配的最后包含一个“default”默认case,可以使用下划线通配符,或者有含义的变量名。
So as well as being able to pattern match over values, such as integers, floating point Numbers and strings, we are also able to pattern match over an objects type.
所以正如能够匹配很多值一样,我们也能够匹配很多对象类型,如:整数、浮点数和字符串。
In the second case of we've used a special wild card pattern to match a List of any size, even zero elements, and any element values.
在第二个case里我们使用了一个特殊的通配符来匹配一个任意大小的List,甚至0个元素,任何元素的值都行。
With a pattern match, there's little chance of making that specific mistake, although there's still plenty of other things to screw up.
模式匹配,犯了特定错误的可能性很小,虽然还有很多其他事情要搞砸了。
A programming language which is designed for string manipulation and pattern match comparison.
为串处理和模式匹配比较而设计的一种编程语言。
The model introduced state shift concept and inosculated pattern match detection and state shift detection, which overcame the shortcoming that other models detected only using single character.
模型引入了状态转移概念并将模式匹配检测和状态转移检测结合在一起,克服了已有模型只专注于单一特征检测的缺陷。
This paper describes a model of English lexical selection, based on example comparison and with the help of semantic pattern match.
本文描述了一种基于实例比较,辅以语义模式匹配的英文选词模型的设计。
应用推荐