$PathnameSeparator
是一种在构建全部文件和目录名时用作分隔符的字符串.
更多信息
- 在 Windows 下缺省值为 "\\",其它情况为 "/".
- 在 Windows 下,函数如 FileNameSplit 默认允许 \ 和 / 两者作为分隔符.
范例
基本范例 (2)
$PathnameSeparator$PathnameSeparator 用作分隔符:
FullForm[$InstallationDirectory]StringSplit[%, $PathnameSeparator]相关的工作流程
- 在输入中插入文件路径 ▪
- 用程序构建文件路径
历史
1991年引入 (2.0) | 在以下年份被更新:2008 (7.0)
文本
Wolfram Research (1991),$PathnameSeparator,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$PathnameSeparator.html (更新于 2008 年).
CMS
Wolfram 语言. 1991. "$PathnameSeparator." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2008. https://reference.wolfram.com/language/ref/$PathnameSeparator.html.
APA
Wolfram 语言. (1991). $PathnameSeparator. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/$PathnameSeparator.html 年
BibTeX
@misc{reference.wolfram_2026_$pathnameseparator, author="Wolfram Research", title="{$PathnameSeparator}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/$PathnameSeparator.html}", note=[Accessed: 25-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_$pathnameseparator, organization={Wolfram Research}, title={$PathnameSeparator}, year={2008}, url={https://reference.wolfram.com/language/ref/$PathnameSeparator.html}, note=[Accessed: 25-August-2026]}