Environment
Environment["var"]
用来给出操作系统环境变量的值.
更多信息
- 由 Environment 返回的环境变量的值以字符串形式返回.
- 如果 Environment 无法找到你所询问的操作系统变量的值,它返回 $Failed.
- Environment 的行为依赖于您所使用的计算机.
范例
基本范例 (1)
技术笔记
-
▪
- 全局系统信息
相关指南
-
▪
- 系统信息 ▪
- 系统和许可证管理 ▪
- 独立的 Wolfram 语言内核 ▪
- 底层系统优化 ▪
- LLM 相关的功能
历史
1988年引入 (1.0)
文本
Wolfram Research (1988),Environment,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Environment.html.
CMS
Wolfram 语言. 1988. "Environment." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/Environment.html.
APA
Wolfram 语言. (1988). Environment. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Environment.html 年
BibTeX
@misc{reference.wolfram_2025_environment, author="Wolfram Research", title="{Environment}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Environment.html}", note=[Accessed: 29-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_environment, organization={Wolfram Research}, title={Environment}, year={1988}, url={https://reference.wolfram.com/language/ref/Environment.html}, note=[Accessed: 29-April-2026]}