Array

js中数组的每一项可以保存任何类型的数据,而且数组的大小是可以动态调整的,可以随数据的添加自动增长以容纳新数据。


创建数组有两种方法

var arr1 = newArray(); //创建一个空数组

var arr2 = newArray(20); // 创建一个包含20项的数组

var arr3 = newArray("lily","lucy","Tom");  // 创建一个包含3个字符串的数组

var arr4 = []; //创建一个空数组
var arr5 = [20]; // 创建一个包含1项的数组
var arr6 =["lily","lucy","Tom"];  // 创建一个包含3个字符串的数组


使用Array构造函数时也可以省略new操作符

 

在读取和设置数组的值时,要使用方括号并提供相应值的基于 0的数字索引

方括号中的索引表示要访问的值。如果索引小于数组中的项数,则返回对应项的值.

某个值的索引超过了数组现有项数,数组就会自动增加到该索引值加 1 的长度


JavaScript中数组的length属性是可以修改的。通过设置这个属性,可以从数组的末尾移除项或向数组中添加新项

var arr =["lily","lucy","Tom"];  // 创建一个包含3个字符串的数组
arr[arr.length] ="sean"; //在下标为3处(也就是数组尾部)添加一项"sean"
arr.length = arr.length-1;//将数组的最后一项删除

 

instanceof操作符的问题在于,它假定只有一个全局执行环境。

可以用Array.isArray()方法确定某个值到底是不是数组

if (Array.isArray(value)){

    //对数组执行某些操作 

}


栈方法
栈是一种 LIFOLast-In-First-Out,后进先出)的数据结构,也就是 新添加的项 早被移除
push()方法可以接收任意数量的参数,把它们逐个添加到数组末尾,并返回修改后数组的长度。
pop()方法则从数组末尾移除 后一项,减少数组的length值,然后返回移除的项。

队列方法

FIFOFirst-In-First-Out,先进先出)。队列在列表的末端添加项,从列表的前端移除项。

shift()它能够移除数组中的第一个项并返回该项,同时将数组长度减1

结合使用shift()push()方法,可以像使用队列一样使用数组。

unshift()shift()的用途相反:它能在数组前端添加任意个项并返回新数组的长度。因此,同时使用unshift()pop()方法,可以从相反的方向来模拟队列,即在数组的前端添加项,从数组末端移除项


重排序方法

reverse()方法会反转数组项的顺序

var values = [1, 2, 3, 4,5];
values.reverse(); alert(values); //5,4,3,2,1


sort()方法会调用每个数组项的 toString()转型方法,然后比较得到的字符串,以确定如何排序按升序排列数组项
sort()方法可以接收一个比较函数作为参数,以便我们指定哪个值位于哪个值的前面。

Function compare(value1,value2){

       If (value1<value2){

              return -1;

       }

else if (value1>value2){

              return 1;

       }

else{

       return 0;

}

}

arr2 =[13,24,51,3];

console.log(arr2.sort(compare)); //[3,13,24,51]

如果需要通过比较函数产生降序排序的结果,只要交换比较函数返回的值即可



concat()方法可以基于当前数组中的所有项创建一个新数组

如果传递给concat()方法的是一或多个数组,则该方法会将这些数组中的每一项都添加到结果数组中。如果传递的值不是数组,这些值就会被简单地添加到结果数组的末尾.


slice()它能够基于当前数组中的一或多个项创建一个新数组。slice()方法可以接受一或两个参数,即要返回项的起始和结束位置。在只有一个参数的情况下,slice()方法返回从该参数指定位置开始到当前数组末尾的所有项。如果有两个参数,该方法返回起始和结束位置之间的项— —但不包括结束位置的项。

slice()方法不会影响原始数组。如果slice()方法的参数中有一个负数,则用数组长度加上该数来确定相应的位置。如果结束位置小于起始位置,则返回空数组。


splice()

会返回一个数组,该数组中包含从原始数组中删除的项

删除:需指定 2 个参数:要删除的第一项的位置和要删除的项数

插入:需提供 3 个参数:起始位置、0(要删除的项数)和要插入的项

替换:需指定 3 个参数:起始位置、要删除的项数和要插入的任意数量的项。插入的项数不必与删除的项数相等


indexOf()lastIndexOf()

两个参数:要查找的项和(可选的)表示查找起点位置的索引。

indexOf()方法从数组的开头(位置 0)开始向后查找,lastIndexOf()方法则从数组的末尾开始向前查找。

要求查找的项必须严格相等。会返回要查找的项在数组中的位置。


reduce()和 reduceRight()

这两个方法都会实现迭代数组的所有项,然后构建一个最终返回的值。reduce()方法从数组的第一项开始,逐个遍历到最后。而 reduceRight()则从数组的最后一项开始,向前遍历到第一项。

这两个方法都接收两个参数:一个在每一项上调用的函数和(可选的)作为归并基础的初始值。

传给 reduce()和 reduceRight()的函数接收 4 个参数:前一个值、当前值、项的索引和数组对象。这个函数返回的任何值都会作为第一个参数自动传给下一项。第一次迭代发生在数组的第二项上,因此第一个参数是数组的第一项,第二个参数就是数组的第二项。


toLocaleString()toString()valueOf()方法

调用数组的toString()方法和valueOf()方法会返回由数组中每个值的字符串形式拼接而成的一个以逗号分隔的字符串。toLocaleString()与前两个方法唯一的不同之处在于,这一次为了取得每一项的值,调用的是每一项的toLocale- String()方法,而不是toString()方法。

在默认情况下都会以逗号分隔的字符串的形式返回数组项。

而使用join()方法接收一个参数,即用作分隔符的字符串,然后返回包含所有数组项的字符串。

 

迭代方法

ECMAScript 5 为数组定义了 5 个迭代方法。

每个方法都接收两个参数:要在每一项上运行的函数和(可选的)运行该函数的作用域对象——影响 this 的值。
传入这些方法中的函数会接收三个参数:数组项的值、该项在数组中的位置和数组对象本身

1.forEach():对数组进行遍历循环,对数组中的每一项运行给定函数。这个方法没有返回值。参数都是function类型,默认有传参,参数分别为:遍历的数组内容;第对应的数组索引,数组本身。

2.some():判断数组中是否存在满足条件的项,只要有一项满足条件,就会返回true

3.every():判断数组中每一项都是否满足条件,只有所有项都满足条件,才会返回true

4.filter():“过滤”功能,数组中的每一项运行给定函数,返回满足过滤条件组成的数组。

5.map():指“映射”,对数组中的每一项运行给定函数,返回每次函数调用的结果组成的数组。

处理股票 SZsz300755 失败: input array type is not double 处理股票 SZsz300756 失败: input array type is not double 处理股票 SZsz300757 失败: input array type is not double 处理股票 SZsz300758 失败: input array type is not double 处理股票 SZsz300759 失败: input array type is not double 处理股票 SZsz300760 失败: input array type is not double 处理股票 SZsz300761 失败: input array type is not double 处理股票 SZsz300762 失败: input array type is not double 处理股票 SZsz300763 失败: input array type is not double 处理股票 SZsz300765 失败: input array type is not double 处理股票 SZsz300766 失败: input array type is not double 处理股票 SZsz300767 失败: input array type is not double 处理股票 SZsz300768 失败: input array type is not double 处理股票 SZsz300769 失败: input array type is not double 处理股票 SZsz300770 失败: input array type is not double 处理股票 SZsz300771 失败: input array type is not double 处理股票 SZsz300772 失败: input array type is not double 处理股票 SZsz300773 失败: input array type is not double 处理股票 SZsz300775 失败: input array type is not double 处理股票 SZsz300776 失败: input array type is not double 处理股票 SZsz300777 失败: input array type is not double 处理股票 SZsz300778 失败: input array type is not double 处理股票 SZsz300779 失败: input array type is not double 处理股票 SZsz300780 失败: input array type is not double 处理股票 SZsz300781 失败: input array type is not double 处理股票 SZsz300782 失败: input array type is not double 处理股票 SZsz300783 失败: input array type is not double 处理股票 SZsz300785 失败: input array type is not double 处理股票 SZsz300786 失败: input array type is not double 处理股票 SZsz300787 失败: input array type is not double 处理股票 SZsz300788 失败: input array type is not double 处理股票 SZsz300789 失败: input array type is not double 处理股票 SZsz300790 失败: input array type is not double 处理股票数据: 95%|█████████▍| 6371/6720 [00:15<00:00, 437.00it/s]处理股票 SZsz300791 失败: input array type is not double 处理股票 SZsz300792 失败: input array type is not double 处理股票 SZsz300793 失败: input array type is not double 处理股票 SZsz300795 失败: input array type is not double 处理股票 SZsz300796 失败: input array type is not double 处理股票 SZsz300797 失败: input array type is not double 处理股票 SZsz300798 失败: input array type is not double 处理股票 SZsz300799 失败: input array type is not double 处理股票 SZsz300800 失败: input array type is not double 处理股票 SZsz300801 失败: input array type is not double 处理股票 SZsz300802 失败: input array type is not double 处理股票 SZsz300803 失败: input array type is not double 处理股票 SZsz300805 失败: input array type is not double 处理股票 SZsz300806 失败: input array type is not double 处理股票 SZsz300807 失败: input array type is not double 处理股票 SZsz300808 失败: input array type is not double 处理股票 SZsz300809 失败: input array type is not double 处理股票 SZsz300810 失败: input array type is not double 处理股票 SZsz300811 失败: input array type is not double 处理股票 SZsz300812 失败: input array type is not double 处理股票 SZsz300813 失败: input array type is not double 处理股票 SZsz300815 失败: input array type is not double 处理股票 SZsz300816 失败: input array type is not double 处理股票 SZsz300817 失败: input array type is not double 处理股票 SZsz300818 失败: input array type is not double 处理股票 SZsz300819 失败: input array type is not double 处理股票 SZsz300820 失败: input array type is not double 处理股票 SZsz300821 失败: input array type is not double 处理股票 SZsz300822 失败: input array type is not double 处理股票 SZsz300823 失败: input array type is not double 处理股票 SZsz300824 失败: input array type is not double 处理股票 SZsz300825 失败: input array type is not double 处理股票 SZsz300826 失败: input array type is not double 处理股票 SZsz300827 失败: input array type is not double 处理股票 SZsz300828 失败: input array type is not double 处理股票 SZsz300829 失败: input array type is not double 处理股票 SZsz300830 失败: input array type is not double 处理股票 SZsz300831 失败: input array type is not double 处理股票 SZsz300832 失败: input array type is not double 处理股票 SZsz300833 失败: input array type is not double 处理股票 SZsz300835 失败: input array type is not double 处理股票 SZsz300836 失败: input array type is not double 处理股票 SZsz300837 失败: input array type is not double 处理股票 SZsz300838 失败: input array type is not double 处理股票 SZsz300839 失败: input array type is not double 处理股票 SZsz300840 失败: input array type is not double 处理股票 SZsz300841 失败: input array type is not double 处理股票 SZsz300842 失败: input array type is not double 处理股票 SZsz300843 失败: input array type is not double 处理股票 SZsz300845 失败: input array type is not double 处理股票 SZsz300846 失败: input array type is not double 处理股票 SZsz300847 失败: input array type is not double 处理股票 SZsz300848 失败: input array type is not double 处理股票 SZsz300849 失败: input array type is not double 处理股票 SZsz300850 失败: input array type is not double 处理股票 SZsz300851 失败: input array type is not double 处理股票 SZsz300852 失败: input array type is not double 处理股票 SZsz300853 失败: input array type is not double 处理股票 SZsz300855 失败: input array type is not double 处理股票 SZsz300856 失败: input array type is not double 处理股票 SZsz300857 失败: input array type is not double 处理股票 SZsz300858 失败: input array type is not double 处理股票 SZsz302132 失败: input array type is not double 处理股票 SZsz399001 失败: input array type is not double 处理股票 SZsz399002 失败: input array type is not double 处理股票 SZsz399003 失败: input array type is not double 处理股票 SZsz399004 失败: input array type is not double 处理股票 SZsz399005 失败: input array type is not double 处理股票 SZsz399006 失败: input array type is not double 处理股票 SZsz399007 失败: input array type is not double 处理股票 SZsz399008 失败: input array type is not double 处理股票 SZsz399009 失败: input array type is not double 处理股票 SZsz399010 失败: input array type is not double 处理股票 SZsz399011 失败: input array type is not double 处理股票 SZsz399012 失败: input array type is not double 处理股票 SZsz399013 失败: input array type is not double 处理股票 SZsz399015 失败: input array type is not double 处理股票 SZsz399016 失败: input array type is not double 处理股票 SZsz399017 失败: input array type is not double 处理股票 SZsz399018 失败: input array type is not double 处理股票 SZsz399019 失败: input array type is not double 处理股票 SZsz399020 失败: input array type is not double 处理股票 SZsz399050 失败: input array type is not double 处理股票 SZsz399088 失败: input array type is not double 处理股票 SZsz399100 失败: input array type is not double 处理股票 SZsz399101 失败: input array type is not double 处理股票 SZsz399102 失败: input array type is not double 处理股票 SZsz399103 失败: input array type is not double 处理股票 SZsz399106 失败: input array type is not double 处理股票 SZsz399107 失败: input array type is not double 处理股票数据: 96%|█████████▌| 6459/6720 [00:15<00:00, 431.42it/s]处理股票 SZsz399108 失败: input array type is not double 处理股票 SZsz399231 失败: input array type is not double 处理股票 SZsz399232 失败: input array type is not double 处理股票 SZsz399233 失败: input array type is not double 处理股票 SZsz399234 失败: input array type is not double 处理股票 SZsz399235 失败: input array type is not double 处理股票 SZsz399236 失败: input array type is not double 处理股票 SZsz399237 失败: input array type is not double 处理股票 SZsz399238 失败: input array type is not double 处理股票 SZsz399239 失败: input array type is not double 处理股票 SZsz399240 失败: input array type is not double 处理股票 SZsz399241 失败: input array type is not double 处理股票 SZsz399242 失败: input array type is not double 处理股票 SZsz399243 失败: input array type is not double 处理股票 SZsz399244 失败: input array type is not double 处理股票 SZsz399248 失败: input array type is not double 处理股票 SZsz399249 失败: input array type is not double 处理股票 SZsz399262 失败: input array type is not double 处理股票 SZsz399263 失败: input array type is not double 处理股票 SZsz399264 失败: input array type is not double 处理股票 SZsz399265 失败: input array type is not double 处理股票 SZsz399266 失败: input array type is not double 处理股票 SZsz399275 失败: input array type is not double 处理股票 SZsz399276 失败: input array type is not double 处理股票 SZsz399277 失败: input array type is not double 处理股票 SZsz399278 失败: input array type is not double 处理股票 SZsz399279 失败: input array type is not double 处理股票 SZsz399280 失败: input array type is not double 处理股票 SZsz399281 失败: input array type is not double 处理股票 SZsz399282 失败: input array type is not double 处理股票 SZsz399283 失败: input array type is not double 处理股票 SZsz399284 失败: input array type is not double 处理股票 SZsz399285 失败: input array type is not double 处理股票 SZsz399286 失败: input array type is not double 处理股票 SZsz399290 失败: input array type is not double 处理股票 SZsz399291 失败: input array type is not double 处理股票 SZsz399292 失败: input array type is not double 处理股票 SZsz399293 失败: input array type is not double 处理股票 SZsz399294 失败: input array type is not double 处理股票 SZsz399295 失败: input array type is not double 处理股票 SZsz399296 失败: input array type is not double 处理股票 SZsz399297 失败: input array type is not double 处理股票 SZsz399298 失败: input array type is not double 处理股票 SZsz399299 失败: input array type is not double 处理股票 SZsz399300 失败: input array type is not double 处理股票 SZsz399301 失败: input array type is not double 处理股票 SZsz399302 失败: input array type is not double 处理股票 SZsz399303 失败: input array type is not double 处理股票 SZsz399306 失败: input array type is not double 处理股票 SZsz399307 失败: input array type is not double 处理股票 SZsz399310 失败: input array type is not double 处理股票 SZsz399311 失败: input array type is not double 处理股票 SZsz399312 失败: input array type is not double 处理股票 SZsz399313 失败: input array type is not double 处理股票 SZsz399314 失败: input array type is not double 处理股票 SZsz399315 失败: input array type is not double 处理股票 SZsz399316 失败: input array type is not double 处理股票 SZsz399317 失败: input array type is not double 处理股票 SZsz399318 失败: input array type is not double 处理股票 SZsz399319 失败: input array type is not double 处理股票 SZsz399320 失败: input array type is not double 处理股票 SZsz399321 失败: input array type is not double 处理股票 SZsz399322 失败: input array type is not double 处理股票 SZsz399324 失败: input array type is not double 处理股票 SZsz399326 失败: input array type is not double 处理股票 SZsz399328 失败: input array type is not double 处理股票 SZsz399330 失败: input array type is not double 处理股票 SZsz399333 失败: input array type is not double 处理股票 SZsz399335 失败: input array type is not double 处理股票 SZsz399337 失败: input array type is not double 处理股票 SZsz399339 失败: input array type is not double 处理股票 SZsz399341 失败: input array type is not double 处理股票 SZsz399344 失败: input array type is not double 处理股票 SZsz399346 失败: input array type is not double 处理股票 SZsz399348 失败: input array type is not double 处理股票 SZsz399350 失败: input array type is not double 处理股票 SZsz399351 失败: input array type is not double 处理股票 SZsz399352 失败: input array type is not double 处理股票 SZsz399353 失败: input array type is not double 处理股票 SZsz399354 失败: input array type is not double 处理股票 SZsz399355 失败: input array type is not double 处理股票 SZsz399356 失败: input array type is not double 处理股票 SZsz399357 失败: input array type is not double 处理股票 SZsz399358 失败: input array type is not double 处理股票 SZsz399359 失败: input array type is not double 处理股票 SZsz399360 失败: input array type is not double 处理股票 SZsz399361 失败: input array type is not double 处理股票 SZsz399362 失败: input array type is not double 处理股票数据: 97%|█████████▋| 6547/6720 [00:15<00:00, 430.39it/s]处理股票 SZsz399363 失败: input array type is not double 处理股票 SZsz399364 失败: input array type is not double 处理股票 SZsz399365 失败: input array type is not double 处理股票 SZsz399366 失败: input array type is not double 处理股票 SZsz399367 失败: input array type is not double 处理股票 SZsz399368 失败: input array type is not double 处理股票 SZsz399369 失败: input array type is not double 处理股票 SZsz399370 失败: input array type is not double 处理股票 SZsz399371 失败: input array type is not double 处理股票 SZsz399372 失败: input array type is not double 处理股票 SZsz399373 失败: input array type is not double 处理股票 SZsz399374 失败: input array type is not double 处理股票 SZsz399375 失败: input array type is not double 处理股票 SZsz399376 失败: input array type is not double 处理股票 SZsz399377 失败: input array type is not double 处理股票 SZsz399378 失败: input array type is not double 处理股票 SZsz399379 失败: input array type is not double 处理股票 SZsz399380 失败: input array type is not double 处理股票 SZsz399381 失败: input array type is not double 处理股票 SZsz399382 失败: input array type is not double 处理股票 SZsz399383 失败: input array type is not double 处理股票 SZsz399384 失败: input array type is not double 处理股票 SZsz399385 失败: input array type is not double 处理股票 SZsz399386 失败: input array type is not double 处理股票 SZsz399387 失败: input array type is not double 处理股票 SZsz399388 失败: input array type is not double 处理股票 SZsz399389 失败: input array type is not double 处理股票 SZsz399390 失败: input array type is not double 处理股票 SZsz399391 失败: input array type is not double 处理股票 SZsz399392 失败: input array type is not double 处理股票 SZsz399393 失败: input array type is not double 处理股票 SZsz399394 失败: input array type is not double 处理股票 SZsz399395 失败: input array type is not double 处理股票 SZsz399396 失败: input array type is not double 处理股票 SZsz399397 失败: input array type is not double 处理股票 SZsz399398 失败: input array type is not double 处理股票 SZsz399399 失败: input array type is not double 处理股票 SZsz399400 失败: input array type is not double 处理股票 SZsz399401 失败: input array type is not double 处理股票 SZsz399402 失败: input array type is not double 处理股票 SZsz399403 失败: input array type is not double 处理股票 SZsz399404 失败: input array type is not double 处理股票 SZsz399405 失败: input array type is not double 处理股票 SZsz399406 失败: input array type is not double 处理股票 SZsz399407 失败: input array type is not double 处理股票 SZsz399408 失败: input array type is not double 处理股票 SZsz399409 失败: input array type is not double 处理股票 SZsz399410 失败: input array type is not double 处理股票 SZsz399411 失败: input array type is not double 处理股票 SZsz399412 失败: input array type is not double 处理股票 SZsz399413 失败: input array type is not double 处理股票 SZsz399415 失败: input array type is not double 处理股票 SZsz399416 失败: input array type is not double 处理股票 SZsz399417 失败: input array type is not double 处理股票 SZsz399418 失败: input array type is not double 处理股票 SZsz399419 失败: input array type is not double 处理股票 SZsz399420 失败: input array type is not double 处理股票 SZsz399422 失败: input array type is not double 处理股票 SZsz399423 失败: input array type is not double 处理股票 SZsz399427 失败: input array type is not double 处理股票 SZsz399428 失败: input array type is not double 处理股票 SZsz399429 失败: input array type is not double 处理股票 SZsz399431 失败: input array type is not double 处理股票 SZsz399432 失败: input array type is not double 处理股票 SZsz399433 失败: input array type is not double 处理股票 SZsz399434 失败: input array type is not double 处理股票 SZsz399435 失败: input array type is not double 处理股票 SZsz399436 失败: input array type is not double 处理股票 SZsz399437 失败: input array type is not double 处理股票 SZsz399438 失败: input array type is not double 处理股票 SZsz399439 失败: input array type is not double 处理股票 SZsz399440 失败: input array type is not double 处理股票 SZsz399441 失败: input array type is not double 处理股票 SZsz399481 失败: input array type is not double 处理股票 SZsz399550 失败: input array type is not double 处理股票 SZsz399551 失败: input array type is not double 处理股票 SZsz399552 失败: input array type is not double 处理股票 SZsz399553 失败: input array type is not double 处理股票 SZsz399554 失败: input array type is not double 处理股票 SZsz399555 失败: input array type is not double 处理股票 SZsz399556 失败: input array type is not double 处理股票 SZsz399557 失败: input array type is not double 处理股票 SZsz399602 失败: input array type is not double 处理股票 SZsz399604 失败: input array type is not double 处理股票 SZsz399606 失败: input array type is not double 处理股票 SZsz399608 失败: input array type is not double 处理股票 SZsz399610 失败: input array type is not double 处理股票 SZsz399611 失败: input array type is not double 处理股票数据: 99%|█████████▊| 6635/6720 [00:15<00:00, 431.38it/s]处理股票 SZsz399612 失败: input array type is not double 处理股票 SZsz399613 失败: input array type is not double 处理股票 SZsz399614 失败: input array type is not double 处理股票 SZsz399615 失败: input array type is not double 处理股票 SZsz399616 失败: input array type is not double 处理股票 SZsz399617 失败: input array type is not double 处理股票 SZsz399618 失败: input array type is not double 处理股票 SZsz399619 失败: input array type is not double 处理股票 SZsz399620 失败: input array type is not double 处理股票 SZsz399621 失败: input array type is not double 处理股票 SZsz399622 失败: input array type is not double 处理股票 SZsz399623 失败: input array type is not double 处理股票 SZsz399624 失败: input array type is not double 处理股票 SZsz399625 失败: input array type is not double 处理股票 SZsz399626 失败: input array type is not double 处理股票 SZsz399627 失败: input array type is not double 处理股票 SZsz399628 失败: input array type is not double 处理股票 SZsz399629 失败: input array type is not double 处理股票 SZsz399630 失败: input array type is not double 处理股票 SZsz399631 失败: input array type is not double 处理股票 SZsz399632 失败: input array type is not double 处理股票 SZsz399633 失败: input array type is not double 处理股票 SZsz399634 失败: input array type is not double 处理股票 SZsz399635 失败: input array type is not double 处理股票 SZsz399636 失败: input array type is not double 处理股票 SZsz399637 失败: input array type is not double 处理股票 SZsz399638 失败: input array type is not double 处理股票 SZsz399639 失败: input array type is not double 处理股票 SZsz399640 失败: input array type is not double 处理股票 SZsz399641 失败: input array type is not double 处理股票 SZsz399642 失败: input array type is not double 处理股票 SZsz399643 失败: input array type is not double 处理股票 SZsz399644 失败: input array type is not double 处理股票 SZsz399645 失败: input array type is not double 处理股票 SZsz399646 失败: input array type is not double 处理股票 SZsz399647 失败: input array type is not double 处理股票 SZsz399648 失败: input array type is not double 处理股票 SZsz399649 失败: input array type is not double 处理股票 SZsz399650 失败: input array type is not double 处理股票 SZsz399651 失败: input array type is not double 处理股票 SZsz399652 失败: input array type is not double 处理股票 SZsz399653 失败: input array type is not double 处理股票 SZsz399654 失败: input array type is not double 处理股票 SZsz399655 失败: input array type is not double 处理股票 SZsz399656 失败: input array type is not double 处理股票 SZsz399657 失败: input array type is not double 处理股票 SZsz399658 失败: input array type is not double 处理股票 SZsz399659 失败: input array type is not double 处理股票 SZsz399660 失败: input array type is not double 处理股票 SZsz399661 失败: input array type is not double 处理股票 SZsz399662 失败: input array type is not double 处理股票 SZsz399663 失败: input array type is not double 处理股票 SZsz399664 失败: input array type is not double 处理股票 SZsz399665 失败: input array type is not double 处理股票 SZsz399666 失败: input array type is not double 处理股票 SZsz399667 失败: input array type is not double 处理股票 SZsz399668 失败: input array type is not double 处理股票 SZsz399669 失败: input array type is not double 处理股票 SZsz399670 失败: input array type is not double 处理股票 SZsz399671 失败: input array type is not double 处理股票 SZsz399672 失败: input array type is not double 处理股票 SZsz399673 失败: input array type is not double 处理股票 SZsz399674 失败: input array type is not double 处理股票 SZsz399675 失败: input array type is not double 处理股票 SZsz399676 失败: input array type is not double 处理股票 SZsz399677 失败: input array type is not double 处理股票 SZsz399678 失败: input array type is not double 处理股票 SZsz399679 失败: input array type is not double 处理股票 SZsz399680 失败: input array type is not double 处理股票 SZsz399681 失败: input array type is not double 处理股票 SZsz399682 失败: input array type is not double 处理股票 SZsz399683 失败: input array type is not double 处理股票 SZsz399684 失败: input array type is not double 处理股票 SZsz399685 失败: input array type is not double 处理股票 SZsz399686 失败: input array type is not double 处理股票 SZsz399687 失败: input array type is not double 处理股票 SZsz399688 失败: input array type is not double 处理股票 SZsz399689 失败: input array type is not double 处理股票 SZsz399690 失败: input array type is not double 处理股票 SZsz399691 失败: input array type is not double 处理股票 SZsz399692 失败: input array type is not double 处理股票 SZsz399693 失败: input array type is not double 处理股票 SZsz399694 失败: input array type is not double 处理股票 SZsz399695 失败: input array type is not double 处理股票 SZsz399696 失败: input array type is not double 处理股票 SZsz399697 失败: input array type is not double 处理股票 SZsz399698 失败: input array type is not double 处理股票 SZsz399699 失败: input array type is not double 处理股票数据: 100%|██████████| 6720/6720 [00:15<00:00, 424.22it/s] 处理股票 SZsz399701 失败: input array type is not double 处理股票 SZsz399702 失败: input array type is not double 处理股票 SZsz399703 失败: input array type is not double 处理股票 SZsz399704 失败: input array type is not double 处理股票 SZsz399705 失败: input array type is not double 处理股票 SZsz399706 失败: input array type is not double 处理股票 SZsz399707 失败: input array type is not double 处理股票 SZsz399750 失败: input array type is not double 处理股票 SZsz399802 失败: input array type is not double 处理股票 SZsz399803 失败: input array type is not double 处理股票 SZsz399804 失败: input array type is not double 处理股票 SZsz399805 失败: input array type is not double 处理股票 SZsz399806 失败: input array type is not double 处理股票 SZsz399807 失败: input array type is not double 处理股票 SZsz399808 失败: input array type is not double 处理股票 SZsz399809 失败: input array type is not double 处理股票 SZsz399810 失败: input array type is not double 处理股票 SZsz399811 失败: input array type is not double 处理股票 SZsz399812 失败: input array type is not double 处理股票 SZsz399813 失败: input array type is not double 处理股票 SZsz399814 失败: input array type is not double 处理股票 SZsz399817 失败: input array type is not double 处理股票 SZsz399850 失败: input array type is not double 处理股票 SZsz399852 失败: input array type is not double 处理股票 SZsz399901 失败: input array type is not double 处理股票 SZsz399903 失败: input array type is not double 处理股票 SZsz399904 失败: input array type is not double 处理股票 SZsz399905 失败: input array type is not double 处理股票 SZsz399908 失败: input array type is not double 处理股票 SZsz399909 失败: input array type is not double 处理股票 SZsz399910 失败: input array type is not double 处理股票 SZsz399911 失败: input array type is not double 处理股票 SZsz399912 失败: input array type is not double 处理股票 SZsz399913 失败: input array type is not double 处理股票 SZsz399914 失败: input array type is not double 处理股票 SZsz399917 失败: input array type is not double 处理股票 SZsz399918 失败: input array type is not double 处理股票 SZsz399919 失败: input array type is not double 处理股票 SZsz399922 失败: input array type is not double 处理股票 SZsz399925 失败: input array type is not double 处理股票 SZsz399928 失败: input array type is not double 处理股票 SZsz399931 失败: input array type is not double 处理股票 SZsz399932 失败: input array type is not double 处理股票 SZsz399933 失败: input array type is not double 处理股票 SZsz399934 失败: input array type is not double 处理股票 SZsz399935 失败: input array type is not double 处理股票 SZsz399939 失败: input array type is not double 处理股票 SZsz399944 失败: input array type is not double 处理股票 SZsz399950 失败: input array type is not double 处理股票 SZsz399951 失败: input array type is not double 处理股票 SZsz399952 失败: input array type is not double 处理股票 SZsz399957 失败: input array type is not double 处理股票 SZsz399958 失败: input array type is not double 处理股票 SZsz399959 失败: input array type is not double 处理股票 SZsz399961 失败: input array type is not double 处理股票 SZsz399963 失败: input array type is not double 处理股票 SZsz399964 失败: input array type is not double 处理股票 SZsz399965 失败: input array type is not double 处理股票 SZsz399966 失败: input array type is not double 处理股票 SZsz399967 失败: input array type is not double 处理股票 SZsz399969 失败: input array type is not double 处理股票 SZsz399970 失败: input array type is not double 处理股票 SZsz399971 失败: input array type is not double 处理股票 SZsz399972 失败: input array type is not double 处理股票 SZsz399973 失败: input array type is not double 处理股票 SZsz399974 失败: input array type is not double 处理股票 SZsz399975 失败: input array type is not double 处理股票 SZsz399976 失败: input array type is not double 处理股票 SZsz399977 失败: input array type is not double 处理股票 SZsz399978 失败: input array type is not double 处理股票 SZsz399979 失败: input array type is not double 处理股票 SZsz399982 失败: input array type is not double 处理股票 SZsz399983 失败: input array type is not double 处理股票 SZsz399986 失败: input array type is not double 处理股票 SZsz399987 失败: input array type is not double 处理股票 SZsz399989 失败: input array type is not double 处理股票 SZsz399990 失败: input array type is not double 处理股票 SZsz399991 失败: input array type is not double 处理股票 SZsz399992 失败: input array type is not double 处理股票 SZsz399993 失败: input array type is not double 处理股票 SZsz399994 失败: input array type is not double 处理股票 SZsz399995 失败: input array type is not double 处理股票 SZsz399996 失败: input array type is not double 处理股票 SZsz399997 失败: input array type is not double 处理股票 SZsz399998 失败: input array type is not double Traceback (most recent call last): File D:\Anaconda\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec exec(code, globals, locals) File d:\股票量化数据库\股票量化数据库\untitled3.py:449 main() File d:\股票量化数据库\股票量化数据库\untitled3.py:426 in main X_train, y_train = trainer.prepare_dataset(train_data, cluster_model, feature_engineer) File d:\股票量化数据库\股票量化数据库\untitled3.py:341 in prepare_dataset X_full = pd.concat(X_list, axis=0) File D:\Anaconda\Lib\site-packages\pandas\core\reshape\concat.py:380 in concat op = _Concatenator( File D:\Anaconda\Lib\site-packages\pandas\core\reshape\concat.py:443 in __init__ objs, keys = self._clean_keys_and_objs(objs, keys) File D:\Anaconda\Lib\site-packages\pandas\core\reshape\concat.py:505 in _clean_keys_and_objs raise ValueError("No objects to concatenate") ValueError: No objects to concatenate
最新发布
07-20
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值