MathTop

attributes 函数

设置或返回附加到名称上的描述性属性。

语法

  • attributes(name)
  • attributes(name, attr1, attr2, ...)

参数与选项

name要查询或更改属性的名称。
attr属性名称,例如 positive 或 integer。

示例

  1. 设置属性attributes(a, positive, integer); attributes(a)返回 [positive, integer]。