SubsetCount

SubsetCount[list,sub]

给出 sub 作为子列表以任何顺序出现在 list 中的次数.

SubsetCount[list,patt]

给出 list 中以任意顺序与一般模式 patt 匹配的子列表的数量.

更多信息和选项

范例

打开所有单元关闭所有单元

基本范例  (2)

统计一个子列表出现的次数:

统计一个子列表模式出现的次数:

选项  (1)

Overlaps  (1)

允许重叠:

不允许重叠:

属性和关系  (1)

计算子集的数量:

计数规则由 SubsetCases 的结果的长度定义:

Wolfram Research (2020),SubsetCount,Wolfram 语言函数,https://reference.wolfram.com/language/ref/SubsetCount.html.

文本

Wolfram Research (2020),SubsetCount,Wolfram 语言函数,https://reference.wolfram.com/language/ref/SubsetCount.html.

CMS

Wolfram 语言. 2020. "SubsetCount." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/SubsetCount.html.

APA

Wolfram 语言. (2020). SubsetCount. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/SubsetCount.html 年

BibTeX

@misc{reference.wolfram_2024_subsetcount, author="Wolfram Research", title="{SubsetCount}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/SubsetCount.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_subsetcount, organization={Wolfram Research}, title={SubsetCount}, year={2020}, url={https://reference.wolfram.com/language/ref/SubsetCount.html}, note=[Accessed: 21-November-2024 ]}