【发布时间】:2011-04-18 16:54:49
【问题描述】:
假设如果我想要有 10 个元素的数组,每个元素都是一个列表/映射。我正在这样做:
x = array(list(), 10)
x[1][[ "a" ]] = 1
Warning message:
In x[1][["a"]] = 1 :
number of items to replace is not a multiple of replacement length
>
这是正确的方法吗?我希望数组的每个元素都是一个映射。
【问题讨论】: