RunThrough

RunThrough["command",expr]

执行一个外部命令,给出作为输入的 expr 的显示形式,将输出作为 Wolfram 语言输入读取并返回结果.

更多信息

  • RunThroughexprInputForm 形式作为 command 的标准输入,然后读取它的标准输出,将其提供给 Wolfram 语言.
  • RunThrough 启动 command,然后把输入传给 command,最后结束这个输入.

范例

基本范例  (1)

以文本模式运行一个 Wolfram 语言内核,将它的结果放在临时输出文件中:

现在结果在文件中:

删除临时文件:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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