$AssertFunction

$AssertFunction

指定一个函数,用于失败的断言.

更多信息

范例

基本范例  (1)

当断言失败时您可以通过给 $AssertFunction 赋值改变行为. 当断言失败时,下面这个函数抛出一个异常信息:

以下捕获由断言函数抛出的异常信息:

Wolfram Research (2010),$AssertFunction,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$AssertFunction.html.

文本

Wolfram Research (2010),$AssertFunction,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$AssertFunction.html.

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_$assertfunction, author="Wolfram Research", title="{$AssertFunction}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/$AssertFunction.html}", note=[Accessed: 04-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$assertfunction, organization={Wolfram Research}, title={$AssertFunction}, year={2010}, url={https://reference.wolfram.com/language/ref/$AssertFunction.html}, note=[Accessed: 04-November-2024 ]}