数组是一维的, 但是你用了二维的索引
感觉你需要知道target.shape,比如说100行5列,然后在报错上一行进行reshape, target = np.array(target).reshape(100, 5)