钥匙

钥匙[钥匙1val值1,钥匙2val值2,]

给出了键的列表钥匙在一个协会中。

钥匙[{钥匙1val值1,钥匙2val值2,}]

列出了钥匙在规则列表中。

钥匙[快递,小时]

提供中的键列表快递用头把它们包起来小时在评估之前。

细节

  • 钥匙保持键的顺序。
  • 钥匙[钥匙->val值]给予钥匙.
  • 使用钥匙[快递,保持]提取密钥而不进行计算。

示例

全部打开全部关闭

基本示例  (4)

获取关联中的密钥:

从规则列表中获取密钥:

钥匙自动在列表上执行线程:

用换行键保持为了防止评估:

属性和关系  (3)

键按其外观顺序列出:

钥匙自动在列表上执行线程,但不执行关联:

钥匙返回的时间戳时间序列输入:

Wolfram Research(2014),Keys,Wolfram语言函数,https://reference.wolfram.com/language/ref/Keys.html(2019年更新)。

文本

Wolfram Research(2014),Keys,Wolfram语言函数,https://reference.wolfram.com/language/ref/Keys.html(2019年更新)。

CMS公司

沃尔夫拉姆语言。2014年,《钥匙》,Wolfram语言与系统文档中心。Wolfram研究。上次修改时间2019年。https://reference.wolfram.com/language/ref/Keys.html。

亚太地区

沃尔夫拉姆语言。(2014). 钥匙。Wolfram语言与系统文档中心。检索自https://reference.wolfram.com/language/ref/Keys.html

BibTeX公司

@misc{reference.wolfram_2024_keys,author=“wolfram Research”,title=“{keys}”,year=“2019”,howpublished=“\url{https://reference.jolfram.com/language/ref/keys.html}”]}

BibLaTeX公司

@online{reference.wolfram_2024_keys,organization={wolfram Research},title={keys},year={2019},url={https://reference.jolfram.com/language/ref/keys.html},note=[访问时间:2024年9月21日]}