CompoundExpression

expr1;expr2;

依次对 expri 求值,将最后一个作为结果给出.

更多信息

  • CompoundExpression 按照控制流的序列对其参数依次求值.
  • 返回值可以是 Return[expr] 的结果.
  • expri 的求值可能受到 ReturnThrowGoto 影响.
  • expr1;expr2; 返回 Null 值. 如果作为输入给出,相应的输出将不会显示. Out[n] 将仍然被赋予 expr2 的值.

范例

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

基本范例  (3)

执行一个计算,但不显示输出:

% 仍被设置为输出结果:

范围  (1)

ThrowCatch 即刻退出:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_compoundexpression, organization={Wolfram Research}, title={CompoundExpression}, year={1988}, url={https://reference.wolfram.com/language/ref/CompoundExpression.html}, note=[Accessed: 22-November-2024 ]}