【发布时间】:2022-08-20 20:26:49
【问题描述】:
为了简单起见:
points_3D_db.shape = (2816, 4233, 3)
index = array([33, 2860], dtype=int16)
这些作品:
points_3D_db[33, 2860] = array([ 1.54911746, -2.87904632, 7.43229437])
points_3D_db[(33, 2860)] = array([ 1.54911746, -2.87904632, 7.43229437])
points_3D_db[index[0], index[1]] = array([ 1.54911746, -2.87904632, 7.43229437])
这不起作用:
points_3D_db[index] = *** IndexError: index 2860 is out of bounds for axis 0 with size 2816
现在为什么 numpy 会抛出这个错误?