NotebookDirectory

NotebookDirectory[]

给出当前运行的笔记本的路径.

NotebookDirectory[nb]

给出由 nb 指定的笔记本的路径.

更多信息

范例

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

基本范例  (1)

求解包含笔记本文件中指定页的路径名称:

可能存在的问题  (2)

对于已创建的但还没有保存的笔记本没有目录:

如果计算没有从笔记本内直接触发,就不存在目录:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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