使用Numpy中的concatenate函数将数组合并时,遇到TypeError: only integer scalar arrays can be converted to a scalar index问题:
解决方法:将n1,n2用括号括起来,以元组的形式写入函数中
原因:
使用Numpy中的concatenate函数将数组合并时,遇到TypeError: only integer scalar arrays can be converted to a scalar index问题:
解决方法:将n1,n2用括号括起来,以元组的形式写入函数中
原因: