1番目の方法
>>> a = [[] for i in xrange(5)]
>>> b = [a for i in xrange(90)]
>>> c = [b for i in xrange(981)]
>>> d = numpy.array(c)
>>> d
array([], shape=(981, 90, 5, 0), dtype=float64)
>>>d.shape
(981,90,5,0)
2番目の方法
a = numpy.zeros([981,90,5])
a.shape
(981, 90,5)
a[0][0] = ([1,2,3,4,5])
a[0][0] = ([1,2,3,4,5])
Tweet
0 件のコメント :
コメントを投稿