热线电话:13121318867

登录
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个维度进行拼接,对于一维数组而言,不存在第二维,是无法对其进行第二维操作的

32.4521
4
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子