2020-05-12
阅读量:
2699
python报错:AxisError: axis is out of bounds for array of dimension 1
问:
python报错:AxisError: axis is out of bounds for array of dimension 1

答:
这是因为数组x,y是一维数组,这里调用concatenate函数时,设置axis=1,表示要将数组x和y按照第2个维度进行拼接,对于一维数组而言,不存在第二维,是无法对其进行第二维操作的






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
3条评论