$GeneratedAssetLocation
更多信息
- $GeneratedAssetLocation 的默认值是 Automatic.
- 一般设置包括:
-
Automatic 自动设置 File[…] or "file" 存储在本地文件中 LocalObject[…] or "LocalObject" 存储在本地对象中 CloudObject[…] or "CloudObject" 存储在云对象中 "dir/" 存储在目录 dir 下,使用自动文件名 None 尽可能存储在内存中 - 如果目录 "dir" 已经存在,则尾部的路径名分隔符为可选项.
范例
打开所有单元 关闭所有单元基本范例 (2)
范围 (1)
用 $GeneratedAssetLocation 指定文件名:
$GeneratedAssetLocation := CreateUUID["test-"] <> ".mp4"因为使用了 SetDelayed,每次调用函数时都会重新生成该文件名:
Information[VideoGenerator[RandomImage[]], "ResourcePath"]Information[VideoGenerator[RandomImage[]], "ResourcePath"]文本
Wolfram Research (2020),$GeneratedAssetLocation,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$GeneratedAssetLocation.html.
CMS
Wolfram 语言. 2020. "$GeneratedAssetLocation." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/$GeneratedAssetLocation.html.
APA
Wolfram 语言. (2020). $GeneratedAssetLocation. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/$GeneratedAssetLocation.html 年
BibTeX
@misc{reference.wolfram_2026_$generatedassetlocation, author="Wolfram Research", title="{$GeneratedAssetLocation}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/$GeneratedAssetLocation.html}", note=[Accessed: 13-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_$generatedassetlocation, organization={Wolfram Research}, title={$GeneratedAssetLocation}, year={2020}, url={https://reference.wolfram.com/language/ref/$GeneratedAssetLocation.html}, note=[Accessed: 13-August-2026]}