AssociateTo

AssociateTo[a,keyval]

通过添加键值对 keyval,改变关联 a.

AssociateTo[a,{key1val1,key2val2,}]

添加所有键值对 keyivali.

更多信息

范例

基本范例  (3)

创建关联:

改变与 a 关联的值:

如果键尚未在关联中,它将被添加:

改变关联中的多个值:

将一个关联追加到另一个上:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_associateto, organization={Wolfram Research}, title={AssociateTo}, year={2014}, url={https://reference.wolfram.com/language/ref/AssociateTo.html}, note=[Accessed: 18-November-2024 ]}