Containing
Containing["outer","inner"]
表示一个类型为 outer 并含有 inner 类型对象的对象.
更多信息
- Containing 用于诸如 TextCases 和 TextPosition 的构造.
范例
打开所有单元 关闭所有单元基本范例 (1)
TextCases["I went to the store. I spent $50.", Containing["Sentence", "CurrencyAmount"]]TextCases["I went to France. Then I went home.", Containing["Sentence", "Country"]]TextCases["John went to the store. Then he went home.", Containing["Sentence", "ProperNoun"]]范围 (1)
结合 Alternatives 和 Containing 来构成高度构建的查询:
TextCases["The fox chased the mouse. The mouse ran away quickly. The mouse lived in a small hole in the ground.", Containing["Sentence", "Adjective" | "Adverb"]]TextCases["I have a fairly clear idea of what I will buy at the store. I want shoes, a computer, and a jacket. The computer will be the most expensive, and will cost over $1000. John will like my computer.", Containing["Sentence", "CurrencyAmount" | "ProperNoun"]]文本
Wolfram Research (2015),Containing,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Containing.html.
CMS
Wolfram 语言. 2015. "Containing." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/Containing.html.
APA
Wolfram 语言. (2015). Containing. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Containing.html 年
BibTeX
@misc{reference.wolfram_2026_containing, author="Wolfram Research", title="{Containing}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/Containing.html}", note=[Accessed: 13-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_containing, organization={Wolfram Research}, title={Containing}, year={2015}, url={https://reference.wolfram.com/language/ref/Containing.html}, note=[Accessed: 13-August-2026]}