且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

一维numpy串联:TypeError:仅整数标量数组可以转换为标量索引

更新时间:2022-03-23 04:01:52

您需要将数组作为可迭代的(元组或列表)传递,因此正确的语法是

You need to pass the arrays as an iterable (a tuple or list), thus the correct syntax is

x=np.concatenate((x, s_x))