你可以为通配符模式(wildcard pattern),标识符模式(identifier pattern)和元组模式(tuple pattern)指定类型注释,用来限制这种模式只匹配某种类型的值。
基于51个网页-相关网页
The N- tuple pattern recognition approach is an adaptive one easy to implement in parallel with hardware.
元模式识别方法是一种易于硬件并行实现的自适应模式识别方法。
The following example shows how to loop over a sequence, and how to use a tuple pattern instead of a simple variable.
下面的示例演示如何循环一个序列,以及如何使用元组模式来代替简单变量。
Finally, we can use pattern matching to pull out the elements from a list or tuple using the construct notation mentioned earlier.
最后,可以按前面提到的构造表示方法,使用模式匹配从列表或元组中提取元素。
应用推荐