Array

                                                                               数组


数组使应用最广泛的数据存储结构。它被植入到大部分编程语言中

    用我的理解来说说数组吧。就行胡萝卜填坑一样,事先准备好坑,然后来一个填一个。拔掉随便一个胡萝卜,则要将拔掉的那个胡萝卜的后面的所有胡萝卜向前移动一位,将拔掉的胡萝卜的坑填住。

    在给胡萝卜排序时,有相同的胡萝卜时的比较次数:



    代码一波:

    查找数组的一个数据项

package Array.Arrays;

public class LowArray {

    private long[] a;

    public LowArray(int size) {

        a = new long[size];
    }

    public void setElem(int index, long value) {
        a[index] = value;
    }

    public long getElem(int index) {
        return a[index];
    }

    public static void main(String[] args) {
        LowArray arr = new LowArray(100);

        int nEilems = 0;
        int j;
        arr.setElem(0, 88);
        arr.setElem(1, 77);
        arr.setElem(2, 99);
        arr.setElem(3, 44);
        arr.setElem(4, 55);
        arr.setElem(5, 22);
        arr.setElem(6, 11);
        arr.setElem(7, 00);
        arr.setElem(8, 86);
        arr.setElem(9, 33);

        nEilems = 10;

        for (j = 0; j < nEilems; j++) {
            System.out.print(arr.getElem(j) + " ");
        }
        System.out.println("");

        int searchKey = 26;
        for (j = 0; j < nEilems; j++)
            if (arr.getElem(j) == searchKey)
                break;

        if (j == nEilems)
            System.out.println("Can't find " + searchKey);
        else
            System.out.println("Found " + searchKey);

        for (j = 0; j < nEilems; j++)
            if (arr.getElem(j) == 26)
                break;


        for (int k = j; k < nEilems; k++)
            arr.setElem(k, arr.getElem(k + 1));
        nEilems--;


        for (j = 0; j < nEilems; j++) {
            System.out.print(arr.getElem(j) + " ");
        }
        System.out.println("");
    }
}

                                    l l      l l

                                    V       V

                                    代码优化

package Array.Arrays;

public class HighArray {

    //数组
    private long a[];
    //数组长度
    private int nElems;

    public HighArray(int max) {
        a = new long[max];
        nElems = 0;
    }

    //查找数据项
    public boolean find(long searchKey) {
        int j;
        for (j = 0; j < nElems; j++)
            if (a[j] == searchKey)
                break;

        if (j == nElems)
            return false;
        else
            return true;
    }


    //添加一个数据
    public void insert(long value) {
        a[nElems] = value;
        nElems++;
    }

    //删除一个数据
    public boolean delete(long value) {
        int j;
        for (j = 0; j < nElems; j++) {
            if (value == a[j])
                break;
        }
        if (j == nElems)
            return false;
        else
            for (int k = j; k < nElems; k++) {
                a[k] = a[k + 1];
            }
        nElems--;
        return true;
    }

    //展示数组
    public void display() {
        for (int j = 0; j < nElems; j++) {
            System.out.print(a[j] + " ");
        }
        System.out.println("");
    }

    public static void main(String[] args) {
        int maxSize = 100;
        HighArray arr = new HighArray(maxSize);
        arr = new HighArray(maxSize);

        arr.insert(77);
        arr.insert(99);
        arr.insert(44);
        arr.insert(55);
        arr.insert(22);
        arr.insert(88);
        arr.insert(11);
        arr.insert(00);
        arr.insert(66);
        arr.insert(33);

        arr.display();

        int searchKey = 35;
        if (arr.find(searchKey)) {
            System.out.println("Fount " + searchKey);
        } else {
            System.out.println("Can't Fount " + searchKey);
        }

        arr.delete(00);
        arr.delete(55);

        arr.display();
    }
}


二分查找:

    首先将数组变为有序数组,然后进行二分查找


package Array.Arrays;

public class OrderArray {

    private long[] a;
    private int nElems;

    public OrderArray(int max) {
        a = new long[max];
        nElems = 0;
    }

    public int size() {
        return nElems;
    }

    public int find(long searchKey) {
        int lowerBound = 0;
        int upperBound = nElems - 1;
        int cirIn;

        while (true) {
            cirIn = (lowerBound + upperBound) / 2;
            if (a[cirIn] == searchKey)
                return cirIn;
            else if (lowerBound > upperBound)
                return nElems;
            else {
                if (a[cirIn] < searchKey)
                    lowerBound = cirIn + 1;
                else
                    upperBound = cirIn - 1;
            }
        }
    }

    public void insert(long value) {
        int j;
        for (j = 0; j < nElems; j++)
            if (a[j] > value)
                break;
        for (int k = nElems; k > j; k--)
            a[k] = a[k - 1];
        a[j] = value;
        nElems++;
    }

    public boolean delete(long value) {
        int j = find(value);
        if (j == nElems)
            return false;
        else
            for (int k = j; k < nElems; k++)
                a[k] = a[k + 1];
        nElems--;
        return true;
    }

    public void display() {
        for (int j = 0; j < nElems; j++)
            System.out.print(a[j] + " ");
        System.out.println("");
    }

    public static void main(String[] args) {
        int maxSize = 100;
        OrderArray arr = new OrderArray(maxSize);

        arr.insert(77);
        arr.insert(99);
        arr.insert(44);
        arr.insert(55);
        arr.insert(22);
        arr.insert(88);
        arr.insert(11);
        arr.insert(00);
        arr.insert(66);
        arr.insert(33);


        arr.display();
        int searKey = 55;

        if (arr.find(searKey) != arr.size())
            System.out.println("Fount " + searKey);
        else
            System.out.println("Can't find " + searKey);


        arr.delete(00);
        arr.display();

    }
}

在插入时则就进行数组的有序化,然后进行二分查找



使用大O表示:

算法大O表示的运行时间
线性查找O(N)
二分查找O(logN)
无序数组的插入O(1)
有序数组的插入O(N)
无序数组的删除O(N)
有序数组的删除O(N)



关于大O表示的解释:

https://blog.youkuaiyun.com/meiLin_Ya/article/details/80906733

posted on 2018-07-04 09:45 meiLinYa 阅读( ...) 评论( ...) 编辑 收藏
处理股票 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、付费专栏及课程。

余额充值