一位英国天文学家在分析一台太阳光摄谱仪时,注意到一种特殊的光谱线模式,它与图书馆里的任何一种都不匹配。
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.
那么我们如何知道哪些光谱模式与哪些元素相匹配呢?
So how do we know which spectral patterns match up with which elements?
清单11给出了模式匹配扩展的一些基本用法。
Listing 11 shows some basic usage of the pattern matching expansions.
我们大脑是模式匹配机器,因此我们更容易注意到这样的模式。
Our brains are just pattern matching machines, so we tend to notice patterns like that.
模式匹配这一章是新添的。
这就是众所周知的模式匹配。
如果模式可以继续匹配,那么它可能将生成最多的结果。
If a pattern can continue to match, it will, yielding the largest result possible.
成功使用套筒扳手的关键在于模式匹配:套筒扳手必须与螺母相匹配。
The key to success with a socket wrench is pattern matching: The socket must match the nut.
通过在大括号中指定匹配的数目,您可以匹配特定数目的模式。
You can match a specific number of patterns by specifying the number of matches in braces.
然后,将这个结构送入概念建模引擎进行模式匹配。
This structure is then fed into the Concept Modeling engine for pattern matching.
此模式与任何不包含逗号的字符组匹配。
The pattern matches any group of characters not containing a comma.
其中的关键就是模式匹配,如图1 所示。您不需要编写命令,需要编写的是模式。
The key is pattern matching, as in Figure 1. Instead of coding commands, you code patterns.
为变量赋值实际上就是一种特殊的模式匹配。
Assigning values to variables is actually a special type of pattern matching.
此命令仅仅输出输入中匹配的模式,而不会输出包含匹配的行。
This command only outputs the matched patterns from the input, not the lines of the input that contain a match.
并非确定字符串是否与模式匹配,它有时需要提取每个匹配项。
Rather than determining if a string matches a pattern, it is sometimes desirable to extract every match.
模式匹配。
活动模式的思想就是让你能把模式匹配语法用于其他数据结构。
The idea of active patterns is to enable you to use the pattern matching syntax with other data structures.
内置的操作符使得文本搜索、替换和模式匹配轻而易举。
The built-in operators make text searching, replacing, and pattern matching effortless.
近似匹配确保了相应地“奖赏”有成功可能的DNA模式。
The approximate match ensured that potentially successful DNA patterns were rewarded accordingly.
当匹配模式或者进行值比较时,需要检查数据类型。
Attempting to check the data type when matching a pattern or in a value comparison.
模式将自动切换以匹配所选的运行时目标。
The mode is automatically switched to match the selected runtime target.
规则引擎可以使用多种算法执行模式匹配。
There are a number of algorithms used for pattern matching by rules engines.
匹配树中的模式,并修改树。
查询或显示当前分支中文件模式的匹配。
Looks for and displays matches for a pattern in files in your current branch.
模式匹配是贪婪的;只有第一个匹配的情况会赢。
其它子模式是否会排除在匹配之外?
它使用Scala的模式匹配。
利用模式匹配构建xml。
XSLY 的秘诀:模式匹配
XSLY 的秘诀:模式匹配
应用推荐