array

本文详细介绍了Java数组的基础知识,包括数组的定义、初始化、构造及数组的动态生成等内容。此外,还探讨了数组与对象的关系、数组的默认值、数组越界异常等问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

数组(array)是相同类型变量的集合,可以使用共同的名字引用它。数组可被定义为任何类型,可以是一维或多维。数组中的一个特别要素是通过下标来访问它。数组提供了一种将有联系的信息分组的便利方法。
注意:如果你熟悉C/C++,请注意, Java数组的工作原理与它们不同。

    1、数组不是集合,它只能保存同种类型的多个原始类型或者对象的引用。数组保存的仅仅是对象的引用或者是基本类型,而不是对象本身。

     2、数组本身就是对象,Java中对象是在堆中的,因此数组无论保存原始类型还是其他对象类型,数组对象本身是在堆中的。

    3、数组声明的两种形式:一、int[] arr; 二、int arr[];  推荐使用前者,这符合Sun的命名规范,而且容易了解到关键点,这是一个int数组对象,而不是一个int原始类型。

    4、在数组声明中包含数组长度永远是不合法的!如:int[5] arr; 。因为,声明的时候并没有实例化任何对象,只有在实例化数组对象时,JVM才分配空间,这时才与长度有关。

    5、在数组构造的时候必须指定长度,因为JVM要知道需要在堆上分配多少空间。反例:int[] arr = new int[];

    6、多维数组的声明。int[][][] arr; 是三维int型数组。

    7、一维数组的构造。形如:String[] sa = new String[5];

    或者分成两句:String[] sa;  sa = new String[5];

    8、原始类型数组元素的默认值。对于原始类型数组,在用new构造完成而没有初始化时,JVM自动对其进行初始化。默认值:byte、short、 int、long--0  float--0.0f double--0.0  boolean--false  char--'"u0000'。(无论该数组是成员变量还是局部变量)

    9、对象类型数组中的引用被默认初始化为null。如:Car[] myCar = new Car[10]; 相当于从myCar[0]到myCar[9]都这样被自动初始化为myCar[i] = null;

    10、对象类型的数组虽然被默认初始化了,但是并没有调用其构造函数。也就是说:Car[] myCar = new Car[10];只创建了一个myCar数组对象!并没有创建Car对象的任何实例!

    11、多维数组的构造。float[][] ratings = new float[9][]、int[][][] aaray = new int[2][][];;第一维的长度必须给出(从左到右初始化),其余的可以不写,因为JVM只需要知道赋给变量ratings的对象的长度。

    12、数组索引的范围。数组中各个元素的索引是从0开始的,到length-1。每个数组对象都有一个length属性,它保存了该数组对象的长度。(注意和String对象的length()方法区分开来,这两者没有统一起来是很遗憾的。)

      随机访问性原理:数组的索引值由0开始并不是没有原因的。事实上索引值表示的是:所指定的数组元素相对于数组第一个元素内存位置的位移量(Offset)。索引为0表示位移量为0,所以就是指第一个元素,而索引i就是指相对于第一个元素的位移量为i。不过在Java中您不直接处理关于内存地址的操作,以上的观念主要是让您了解一下数组索引的运作原理

    13、Java有数组下标检查,当访问超出索引范围时,将产生ArrayIndexOutOfBoundsException运行时异常。注意,这种下标检查不是在编译时刻进行的,而是在运行时(是jvm内置的安全机制)!也就是说int[] arr = new int[10];  arr[100] = 100; 这么明显的错误可以通过编译,但在运行时抛出!

    Java的数组下标检查是需要额外开销的,但是出于安全的权衡还是值得的,因为很多语言在使用数组时是不安全的,可以任意访问自身内存块外的数组,编译运行都不会报错,产生难以预料的后果!

14、可以变相的动态产生数组(这种动态同ArrayList一样并不是真正意义上的动态,实际上他根据你的需要最终还是产生一个固定大小的数组)

由于数组的内存空间是使用new配置而来,这意味着您也可以使用动态的方式来定义数组长度,而不用在程序中事先决定数组大小。范例5.4示范了如何由使用者的输入来决定数组长度,它是一个计算输入分数平均的程序。

 AverageInput.java import java.util.Scanner; 

public class AverageInput {    

public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);          

System.out.print("请输入学生人数: ");           

int length = scanner.nextInt();        

float[] score = new float[length];  // 动态配置长度           

for(int i = 0; i < score.length; i++) {            

System.out.print("输入分数:");            

float input = scanner.nextFloat();            

score[i] = input;       

  }         

System.out.print("\n分数:");        

 float total = 0;        

 for(int i = 0; i < score.length; i++) {            

total = total + score[i];            

System.out.print(score[i] + " ");        

 }         

 System.out.printf("\n平均:%.2f", total / score.length);   

 }

或者

public static void main (String args[]){
   int iii = Integer.parseInt(args[0]);

     int[] wer = new int[iii];//此处iii必须先初始化,利用形参或者是通过形参计算出来的值或者是控制台输入的值来实现动态性;
}

15、java中只有数组类(jdk中没有数组的源码)默认设计了clone方法。(即数组已经实现了Cloneable接口的。可以直接调用。)并且数组的clone方法只是实现浅拷贝(即若数组内为对象引用时,他不会对引用指向的对象进行拷贝,这样拷贝数组与原数组内元素所指向的对象是同一个对象)

          clone方法是Object的protected性质的方法。 在java中,Object是所有类的父类!
          但是在对象调用clone()这个方法时,会检查此对象是否有实现Cloneable这个接口(只有实现了Cloneable接口的类才可以被复制,Cloneable 接口没有定义任何成员。它用来指明一个类对象可以被逐位复制。如果你试图对一个没有实现cloneable接口的类调用clone()方法,一个CloneNotSupportedException就会抛出。因为复制可以引起许多问题,clone()在object类中被声明为protected.这意味着,它要么在一个实现了cloneable接口的类中的某一方法里被调用,要么在明确的在那个类中的被重写,且被声明为public的。Cloneable与Serializable都是标志性接口

16、数组这样初始化是错误的:int[] wer = new int[1]{1}; 应该:int[] wer = new int[]{1};

17、Arrays类新增的两方法:

          deepEquals() 对数组作深层比较,简单地说,可以对二维仍至三维以上的数组进行比较是否相等

          deepToString() 将数组值作深层输出,简单地说,可以对二维仍至三维以上的数组输出其字符串值

================================

C/C++动态内存分配:

void* malloc(unsigned size); void* calloc(size_t nelem, size_telsize); 和void* realloc(void* ptr, unsigned newsize);都在stdlib.h函数库内,是C语言的标准内存分配函数。
1. 函数malloc()和calloc()都可以用来动态分配内存空间。malloc()函数有
一个参数,即要分配的内存空间的大小,
malloc 在分配内存时会保留一定的空间用来记录分配情况,分配的次数越多,这些记录占用的空间就越多。另外,根据 malloc 实现策略的不同,malloc 每次在分配的时候,可能分配的空间比实际要求的多些,多次分配会导致更多的这种浪费。当然,这些都和 malloc 的实现有关;calloc()函数有两个参数,分别为元素的数目和每个元素的大小,这两个参数的乘积就是要分配的内存空间的大小。如果调用成功,它们都将返回所分配内存空间的首地址。
2. 函数malloc()和函数calloc()的主要区别是前者不能初始化所分配的内存
空间,而后者能。
3. realloc可以对给定的指针所指的空间进行扩大或者缩小,无论是扩张或
是缩小,原有内存的中内容将保持不变。当然,对于缩小,则被缩小的那一
部分的内容会丢失。
4. realloc 并不保证调整后的内存空间和原来的内存空间保持同一内存地址
。相反,realloc 返回的指针很可能指向一个新的地址。所以在代码中,我
们必须将realloc返回的值,重新赋值给 p :
p = (int *) realloc (p, sizeof(int) *15);

 =====================================================

java 深克隆与浅克隆

1.浅复制与深复制概念
⑴浅复制(浅克隆)
被复制对象的所有变量都含有与原来的对象相同的值,而所有的对其他对象的引用仍然指向原来的对象。换言之,浅复制仅仅复制所考虑的对象,而不

复制它所引用的对象。

⑵深复制(深克隆)
被复制对象的所有变量都含有与原来的对象相同的值,除去那些引用其他对象的变量。那些引用其他对象的变量将指向被复制过的新对象,而不再是原

有的那些被引用的对象。换言之,深复制把要复制的对象所引用的对象都复制了一遍。

2.浅克隆

Java中Object对象的clone()方法,只能实现浅复制。
①为了获取对象的一份拷贝,我们可以利用Object类的clone()方法。
②在派生类中覆盖基类的clone()方法,并声明为public。
③在派生类的clone()方法中,调用super.clone()。 派生类中覆盖Object的clone()方法时,一定要调用super.clone()。在运行时刻,Object中的clone()识别出你要复制的是哪一个对象然后为此对象分配空间,并进行对象的复制,将原始对象的内容一一复制到新对象的存储空间中。
④在派生类中实现Cloneable接口。

3.深克隆

    (1)编程保证要复制的类以及其中所引用的其他类均实现了Cloneable接口,且重写了clone()方法,并且clone()中,要编程调用所引用对象的clone()方法来实现所引用对象的拷贝。

    (2)利用串行化来做深复制

先使对象实现Serializable接口,然后把对象(实际上只是对象的一个拷贝)写到一个流里,再从流里读出来,便可以重建对象。
如下为深复制源代码。
public Object deepClone()    
{    
//将对象写到流里    
ByteArrayOutoutStream bo=new ByteArrayOutputStream();    
ObjectOutputStream oo=new ObjectOutputStream(bo);    
oo.writeObject(this);    
//从流里读出来    
ByteArrayInputStream bi=new ByteArrayInputStream(bo.toByteArray());    
ObjectInputStream oi=new ObjectInputStream(bi);    
return(oi.readObject());    
}  

这样做的前提是对象以及对象内部所有引用到的对象都是可串行化的,否则,就需要仔细考察那些不可串行化的对象可否设成transient,从而将之排除在复制过程之外。上例代码改进如下。
class Teacher implements Serializable{
String name;
int age;
Teacher(String name,int age){
this.name=name;
this.age=age;
}
}
class Student implements Serializable{
String name;//常量对象
int age;
Teacher t;//学生1和学生2的引用值都是一样的。
Student(String name,int age,Teacher t){
this.name=name;
this.age=age;
this.p=p;
}
public Object deepClone() throws IOException,
OptionalDataException,ClassNotFoundException{//将对象写到流里
ByteArrayOutoutStream bo=new ByteArrayOutputStream();
ObjectOutputStream oo=new ObjectOutputStream(bo);
oo.writeObject(this);//从流里读出来
ByteArrayInputStream bi=new ByteArrayInputStream(bo.toByteArray());
ObjectInputStream oi=new ObjectInputStream(bi);
return(oi.readObject());
}

}
public static void main(String[] args){
Teacher t=new Teacher("tangliang",30);
Student s1=new Student("zhangsan",18,t);
Student s2=(Student)s1.deepClone();
s2.t.name="tony";
s2.t.age=40;
System.out.println("name="+s1.t.name+","+"age="+s1.t.age);//学生1的老师不改变
}

 

处理股票 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、付费专栏及课程。

余额充值