0

我在如何将列表或数字存储到空数组中遇到问题,下面是我的代码:

    For( i = 1, i <= N Items( S ), i++,
    dt:Family Device << set name( "family device" );
    dt << Select Where(Starts With( dt:family device, S[i] ) ) ;
    baseDT = dt << Subset( output table name( "Subset" ), selected rows( 1 ), selected columns( 0 ), "invisible");  

我打算将 baseDT 存储在空数组中,有人对存储功能有想法吗?我对 JSL 很陌生,如果在 python 中我们将使用 append 函数来存储,那么 jsl 怎么样?

4

1 回答 1

0

将一个空数组初始化为

emp_array = {};

附加到数组为:

Insert Into(emp_array, baseDT)

然后您可以使用索引访问元素,例如:

emp_array[n]
于 2017-07-26T08:58:59.870 回答