DeclarePackage

DeclarePackage["context`",{"name1","name2",}]

声明如果任何具有指定名称的符号被使用的话,则 Needs["context`"] 应该自动执行.

更多信息

范例

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

基本范例  (1)

声明当使用 Benchmark 符号时,应加载 Benchmarking 程序包:

使用 Stub 属性创建 Benchmark 符号:

使用符号意味着自动读取对应的程序包:

属性和关系  (1)

将已命名的上下文加到搜索路径前面:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_declarepackage, organization={Wolfram Research}, title={DeclarePackage}, year={1991}, url={https://reference.wolfram.com/language/ref/DeclarePackage.html}, note=[Accessed: 17-November-2024 ]}