Sfoglia il codice sorgente

完成了数据科学系统,进一步完善了功能

Huan 5 anni fa
parent
commit
2e4a00c04c
9 ha cambiato i file con 670 aggiunte e 2649 eliminazioni
  1. 0 1060
      $Draw.html
  2. 0 629
      $Pic.html
  3. 0 5
      $Show_Des_Sheet.html
  4. 0 433
      $Show_Sheet.html
  5. 378 306
      Data_Science/Learn.py
  6. 253 140
      Data_Science/Me_learn.py
  7. 2 0
      Data_Science/__init__.py
  8. 37 41
      Hello.py
  9. 0 35
      Test2.py

+ 0 - 1060
$Draw.html

@@ -1,1060 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="UTF-8">
-    <title>CoTan_机器学习</title>
-            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
-        <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts-gl.min.js"></script>
-
-    
-</head>
-<body>
-        <style>
-        .tab {
-            overflow: hidden;
-            border: 1px solid #ccc;
-            background-color: #f1f1f1;
-        }
-
-        .tab button {
-            background-color: inherit;
-            float: left;
-            border: none;
-            outline: none;
-            cursor: pointer;
-            padding: 12px 16px;
-            transition: 0.3s;
-        }
-
-        .tab button:hover {
-            background-color: #ddd;
-        }
-
-        .tab button.active {
-            background-color: #ccc;
-        }
-
-        .chart-container {
-            display: none;
-            padding: 6px 12px;
-            border-top: none;
-        }
-    </style>
-    <div class="tab">
-            <button class="tablinks" onclick="showChart(event, '939df2b155574435aca50ccc4ada912c')">Sheet[0]柱状图[0]:Sheet[0]柱状图</button>
-            <button class="tablinks" onclick="showChart(event, 'c9b3bed3832a4cc192aa7873a5e51254')">Sheet[0]饼图[1]:Sheet[0]饼图</button>
-            <button class="tablinks" onclick="showChart(event, 'f19ec415627141289ec78da3ee9442fd')">Sheet[0]3D散点图[2]:Sheet[0]3D散点图</button>
-    </div>
-
-    <div class="box">
-                <div id="939df2b155574435aca50ccc4ada912c" class="chart-container" style="width:900px; height:500px;"></div>
-    <script>
-        var chart_939df2b155574435aca50ccc4ada912c = echarts.init(
-            document.getElementById('939df2b155574435aca50ccc4ada912c'), 'white', {renderer: 'canvas'});
-        var option_939df2b155574435aca50ccc4ada912c = {
-    "animation": true,
-    "animationThreshold": 2000,
-    "animationDuration": 1000,
-    "animationEasing": "cubicOut",
-    "animationDelay": 0,
-    "animationDurationUpdate": 300,
-    "animationEasingUpdate": "cubicOut",
-    "animationDelayUpdate": 0,
-    "color": [
-        "#c23531",
-        "#2f4554",
-        "#61a0a8",
-        "#d48265",
-        "#749f83",
-        "#ca8622",
-        "#bda29a",
-        "#6e7074",
-        "#546570",
-        "#c4ccd3",
-        "#f05b72",
-        "#ef5b9c",
-        "#f47920",
-        "#905a3d",
-        "#fab27b",
-        "#2a5caa",
-        "#444693",
-        "#726930",
-        "#b2d235",
-        "#6d8346",
-        "#ac6767",
-        "#1d953f",
-        "#6950a1",
-        "#918597"
-    ],
-    "series": [
-        {
-            "type": "bar",
-            "name": "2",
-            "data": [
-                3,
-                4,
-                5,
-                6,
-                7,
-                8,
-                9,
-                10,
-                11,
-                12
-            ],
-            "barCategoryGap": "20%",
-            "label": {
-                "show": false,
-                "position": "top",
-                "margin": 8
-            },
-            "rippleEffect": {
-                "show": true,
-                "brushType": "stroke",
-                "scale": 2.5,
-                "period": 4
-            }
-        },
-        {
-            "type": "bar",
-            "name": "3",
-            "data": [
-                4,
-                5,
-                6,
-                7,
-                8,
-                9,
-                10,
-                11,
-                12,
-                13
-            ],
-            "barCategoryGap": "20%",
-            "label": {
-                "show": false,
-                "position": "top",
-                "margin": 8
-            },
-            "rippleEffect": {
-                "show": true,
-                "brushType": "stroke",
-                "scale": 2.5,
-                "period": 4
-            }
-        },
-        {
-            "type": "bar",
-            "name": "4",
-            "data": [
-                5,
-                6,
-                7,
-                8,
-                9,
-                10,
-                11,
-                12,
-                13,
-                14
-            ],
-            "barCategoryGap": "20%",
-            "label": {
-                "show": false,
-                "position": "top",
-                "margin": 8
-            },
-            "rippleEffect": {
-                "show": true,
-                "brushType": "stroke",
-                "scale": 2.5,
-                "period": 4
-            }
-        },
-        {
-            "type": "bar",
-            "name": "5",
-            "data": [
-                6,
-                7,
-                8,
-                9,
-                10,
-                11,
-                12,
-                13,
-                14,
-                15
-            ],
-            "barCategoryGap": "20%",
-            "label": {
-                "show": false,
-                "position": "top",
-                "margin": 8
-            },
-            "rippleEffect": {
-                "show": true,
-                "brushType": "stroke",
-                "scale": 2.5,
-                "period": 4
-            }
-        },
-        {
-            "type": "bar",
-            "name": "6",
-            "data": [
-                7,
-                8,
-                9,
-                10,
-                11,
-                12,
-                13,
-                14,
-                15,
-                16
-            ],
-            "barCategoryGap": "20%",
-            "label": {
-                "show": false,
-                "position": "top",
-                "margin": 8
-            },
-            "rippleEffect": {
-                "show": true,
-                "brushType": "stroke",
-                "scale": 2.5,
-                "period": 4
-            }
-        }
-    ],
-    "legend": [
-        {
-            "data": [
-                "2",
-                "3",
-                "4",
-                "5",
-                "6"
-            ],
-            "selected": {
-                "2": true,
-                "3": true,
-                "4": true,
-                "5": true,
-                "6": true
-            },
-            "type": "scroll",
-            "show": true,
-            "bottom": "2%",
-            "orient": "horizontal",
-            "padding": 5,
-            "itemGap": 10,
-            "itemWidth": 25,
-            "itemHeight": 14
-        }
-    ],
-    "tooltip": {
-        "show": true,
-        "trigger": "item",
-        "triggerOn": "mousemove|click",
-        "axisPointer": {
-            "type": "line"
-        },
-        "textStyle": {
-            "fontSize": 14
-        },
-        "borderWidth": 0
-    },
-    "xAxis": [
-        {
-            "show": true,
-            "scale": false,
-            "nameLocation": "end",
-            "nameGap": 15,
-            "gridIndex": 0,
-            "axisLine": {
-                "show": true,
-                "onZero": false,
-                "onZeroAxisIndex": 0
-            },
-            "axisTick": {
-                "show": true,
-                "alignWithLabel": false,
-                "inside": false
-            },
-            "inverse": false,
-            "offset": 0,
-            "splitNumber": 5,
-            "minInterval": 0,
-            "splitLine": {
-                "show": false,
-                "lineStyle": {
-                    "width": 1,
-                    "opacity": 1,
-                    "curveness": 0,
-                    "type": "solid"
-                }
-            },
-            "data": [
-                2,
-                3,
-                4,
-                5,
-                6,
-                7,
-                8,
-                9,
-                10,
-                11
-            ]
-        }
-    ],
-    "yAxis": [
-        {
-            "show": true,
-            "scale": false,
-            "nameLocation": "end",
-            "nameGap": 15,
-            "gridIndex": 0,
-            "axisLine": {
-                "show": true,
-                "onZero": false,
-                "onZeroAxisIndex": 0
-            },
-            "axisTick": {
-                "show": true,
-                "alignWithLabel": false,
-                "inside": false
-            },
-            "inverse": false,
-            "offset": 0,
-            "splitNumber": 5,
-            "minInterval": 0,
-            "splitLine": {
-                "show": false,
-                "lineStyle": {
-                    "width": 1,
-                    "opacity": 1,
-                    "curveness": 0,
-                    "type": "solid"
-                }
-            }
-        }
-    ],
-    "title": [
-        {
-            "text": "Sheet[0]\u67f1\u72b6\u56fe",
-            "subtext": "CoTan~\u673a\u5668\u5b66\u4e60:",
-            "padding": 5,
-            "itemGap": 10
-        }
-    ],
-    "toolbox": {
-        "show": true,
-        "orient": "horizontal",
-        "itemSize": 15,
-        "itemGap": 10,
-        "left": "80%",
-        "feature": {
-            "saveAsImage": {
-                "show": true,
-                "title": "save as image",
-                "type": "png"
-            },
-            "restore": {
-                "show": true,
-                "title": "restore"
-            },
-            "dataView": {
-                "show": true,
-                "title": "data view",
-                "readOnly": false
-            },
-            "dataZoom": {
-                "show": true,
-                "title": {
-                    "zoom": "data zoom",
-                    "back": "data zoom restore"
-                }
-            }
-        }
-    },
-    "visualMap": {
-        "show": true,
-        "type": "continuous",
-        "min": 3,
-        "max": 16,
-        "inRange": {
-            "color": [
-                "#50a3ba",
-                "#eac763",
-                "#d94e5d"
-            ]
-        },
-        "calculable": true,
-        "inverse": false,
-        "splitNumber": 5,
-        "orient": "vertical",
-        "showLabel": true,
-        "itemWidth": 20,
-        "itemHeight": 140,
-        "borderWidth": 0
-    }
-};
-        chart_939df2b155574435aca50ccc4ada912c.setOption(option_939df2b155574435aca50ccc4ada912c);
-    </script>
-                <div id="c9b3bed3832a4cc192aa7873a5e51254" class="chart-container" style="width:900px; height:500px;"></div>
-    <script>
-        var chart_c9b3bed3832a4cc192aa7873a5e51254 = echarts.init(
-            document.getElementById('c9b3bed3832a4cc192aa7873a5e51254'), 'white', {renderer: 'canvas'});
-        var option_c9b3bed3832a4cc192aa7873a5e51254 = {
-    "animation": true,
-    "animationThreshold": 2000,
-    "animationDuration": 1000,
-    "animationEasing": "cubicOut",
-    "animationDelay": 0,
-    "animationDurationUpdate": 300,
-    "animationEasingUpdate": "cubicOut",
-    "animationDelayUpdate": 0,
-    "color": [
-        "#c23531",
-        "#2f4554",
-        "#61a0a8",
-        "#d48265",
-        "#749f83",
-        "#ca8622",
-        "#bda29a",
-        "#6e7074",
-        "#546570",
-        "#c4ccd3",
-        "#f05b72",
-        "#ef5b9c",
-        "#f47920",
-        "#905a3d",
-        "#fab27b",
-        "#2a5caa",
-        "#444693",
-        "#726930",
-        "#b2d235",
-        "#6d8346",
-        "#ac6767",
-        "#1d953f",
-        "#6950a1",
-        "#918597"
-    ],
-    "series": [
-        {
-            "type": "pie",
-            "name": "Sheet[0]",
-            "clockwise": true,
-            "data": [
-                {
-                    "name": "2",
-                    "value": 3.0
-                },
-                {
-                    "name": "3",
-                    "value": 4.0
-                },
-                {
-                    "name": "4",
-                    "value": 5.0
-                },
-                {
-                    "name": "5",
-                    "value": 6.0
-                },
-                {
-                    "name": "6",
-                    "value": 7.0
-                },
-                {
-                    "name": "7",
-                    "value": 8.0
-                },
-                {
-                    "name": "8",
-                    "value": 9.0
-                },
-                {
-                    "name": "9",
-                    "value": 10.0
-                },
-                {
-                    "name": "10",
-                    "value": 11.0
-                },
-                {
-                    "name": "11",
-                    "value": 12.0
-                }
-            ],
-            "radius": [
-                "0%",
-                "75%"
-            ],
-            "center": [
-                "50%",
-                "50%"
-            ],
-            "label": {
-                "show": true,
-                "position": "top",
-                "margin": 8,
-                "formatter": "{b}: {c}"
-            },
-            "rippleEffect": {
-                "show": true,
-                "brushType": "stroke",
-                "scale": 2.5,
-                "period": 4
-            }
-        }
-    ],
-    "legend": [
-        {
-            "data": [
-                "2",
-                "3",
-                "4",
-                "5",
-                "6",
-                "7",
-                "8",
-                "9",
-                "10",
-                "11"
-            ],
-            "selected": {},
-            "type": "scroll",
-            "show": true,
-            "bottom": "2%",
-            "orient": "horizontal",
-            "padding": 5,
-            "itemGap": 10,
-            "itemWidth": 25,
-            "itemHeight": 14
-        }
-    ],
-    "tooltip": {
-        "show": true,
-        "trigger": "item",
-        "triggerOn": "mousemove|click",
-        "axisPointer": {
-            "type": "line"
-        },
-        "textStyle": {
-            "fontSize": 14
-        },
-        "borderWidth": 0
-    },
-    "title": [
-        {
-            "text": "Sheet[0]\u997c\u56fe",
-            "subtext": "CoTan~\u673a\u5668\u5b66\u4e60:",
-            "padding": 5,
-            "itemGap": 10
-        }
-    ],
-    "toolbox": {
-        "show": true,
-        "orient": "horizontal",
-        "itemSize": 15,
-        "itemGap": 10,
-        "left": "80%",
-        "feature": {
-            "saveAsImage": {
-                "show": true,
-                "title": "save as image",
-                "type": "png"
-            },
-            "restore": {
-                "show": true,
-                "title": "restore"
-            },
-            "dataView": {
-                "show": true,
-                "title": "data view",
-                "readOnly": false
-            },
-            "dataZoom": {
-                "show": true,
-                "title": {
-                    "zoom": "data zoom",
-                    "back": "data zoom restore"
-                }
-            }
-        }
-    }
-};
-        chart_c9b3bed3832a4cc192aa7873a5e51254.setOption(option_c9b3bed3832a4cc192aa7873a5e51254);
-    </script>
-                <div id="f19ec415627141289ec78da3ee9442fd" class="chart-container" style="width:900px; height:500px;"></div>
-    <script>
-        var chart_f19ec415627141289ec78da3ee9442fd = echarts.init(
-            document.getElementById('f19ec415627141289ec78da3ee9442fd'), 'white', {renderer: 'canvas'});
-        var option_f19ec415627141289ec78da3ee9442fd = {
-    "animation": true,
-    "animationThreshold": 2000,
-    "animationDuration": 1000,
-    "animationEasing": "cubicOut",
-    "animationDelay": 0,
-    "animationDurationUpdate": 300,
-    "animationEasingUpdate": "cubicOut",
-    "animationDelayUpdate": 0,
-    "color": [
-        "#c23531",
-        "#2f4554",
-        "#61a0a8",
-        "#d48265",
-        "#749f83",
-        "#ca8622",
-        "#bda29a",
-        "#6e7074",
-        "#546570",
-        "#c4ccd3",
-        "#f05b72",
-        "#ef5b9c",
-        "#f47920",
-        "#905a3d",
-        "#fab27b",
-        "#2a5caa",
-        "#444693",
-        "#726930",
-        "#b2d235",
-        "#6d8346",
-        "#ac6767",
-        "#1d953f",
-        "#6950a1",
-        "#918597"
-    ],
-    "series": [
-        {
-            "type": "scatter3D",
-            "name": "Sheet[0]",
-            "data": [
-                [
-                    0,
-                    0,
-                    3.0
-                ],
-                [
-                    0,
-                    1,
-                    4.0
-                ],
-                [
-                    0,
-                    2,
-                    5.0
-                ],
-                [
-                    0,
-                    3,
-                    6.0
-                ],
-                [
-                    0,
-                    4,
-                    7.0
-                ],
-                [
-                    0,
-                    5,
-                    8.0
-                ],
-                [
-                    0,
-                    6,
-                    9.0
-                ],
-                [
-                    0,
-                    7,
-                    10.0
-                ],
-                [
-                    0,
-                    8,
-                    11.0
-                ],
-                [
-                    0,
-                    9,
-                    12.0
-                ],
-                [
-                    1,
-                    0,
-                    4.0
-                ],
-                [
-                    1,
-                    1,
-                    5.0
-                ],
-                [
-                    1,
-                    2,
-                    6.0
-                ],
-                [
-                    1,
-                    3,
-                    7.0
-                ],
-                [
-                    1,
-                    4,
-                    8.0
-                ],
-                [
-                    1,
-                    5,
-                    9.0
-                ],
-                [
-                    1,
-                    6,
-                    10.0
-                ],
-                [
-                    1,
-                    7,
-                    11.0
-                ],
-                [
-                    1,
-                    8,
-                    12.0
-                ],
-                [
-                    1,
-                    9,
-                    13.0
-                ],
-                [
-                    2,
-                    0,
-                    5.0
-                ],
-                [
-                    2,
-                    1,
-                    6.0
-                ],
-                [
-                    2,
-                    2,
-                    7.0
-                ],
-                [
-                    2,
-                    3,
-                    8.0
-                ],
-                [
-                    2,
-                    4,
-                    9.0
-                ],
-                [
-                    2,
-                    5,
-                    10.0
-                ],
-                [
-                    2,
-                    6,
-                    11.0
-                ],
-                [
-                    2,
-                    7,
-                    12.0
-                ],
-                [
-                    2,
-                    8,
-                    13.0
-                ],
-                [
-                    2,
-                    9,
-                    14.0
-                ],
-                [
-                    3,
-                    0,
-                    6.0
-                ],
-                [
-                    3,
-                    1,
-                    7.0
-                ],
-                [
-                    3,
-                    2,
-                    8.0
-                ],
-                [
-                    3,
-                    3,
-                    9.0
-                ],
-                [
-                    3,
-                    4,
-                    10.0
-                ],
-                [
-                    3,
-                    5,
-                    11.0
-                ],
-                [
-                    3,
-                    6,
-                    12.0
-                ],
-                [
-                    3,
-                    7,
-                    13.0
-                ],
-                [
-                    3,
-                    8,
-                    14.0
-                ],
-                [
-                    3,
-                    9,
-                    15.0
-                ],
-                [
-                    4,
-                    0,
-                    7.0
-                ],
-                [
-                    4,
-                    1,
-                    8.0
-                ],
-                [
-                    4,
-                    2,
-                    9.0
-                ],
-                [
-                    4,
-                    3,
-                    10.0
-                ],
-                [
-                    4,
-                    4,
-                    11.0
-                ],
-                [
-                    4,
-                    5,
-                    12.0
-                ],
-                [
-                    4,
-                    6,
-                    13.0
-                ],
-                [
-                    4,
-                    7,
-                    14.0
-                ],
-                [
-                    4,
-                    8,
-                    15.0
-                ],
-                [
-                    4,
-                    9,
-                    16.0
-                ]
-            ],
-            "label": {
-                "show": false,
-                "position": "top",
-                "margin": 8
-            }
-        }
-    ],
-    "legend": [
-        {
-            "data": [
-                "Sheet[0]"
-            ],
-            "selected": {},
-            "type": "scroll",
-            "show": true,
-            "bottom": "2%",
-            "orient": "horizontal",
-            "padding": 5,
-            "itemGap": 10,
-            "itemWidth": 25,
-            "itemHeight": 14
-        }
-    ],
-    "tooltip": {
-        "show": true,
-        "trigger": "item",
-        "triggerOn": "mousemove|click",
-        "axisPointer": {
-            "type": "line"
-        },
-        "textStyle": {
-            "fontSize": 14
-        },
-        "borderWidth": 0
-    },
-    "visualMap": {
-        "show": true,
-        "type": "continuous",
-        "min": 2,
-        "max": 11,
-        "inRange": {
-            "color": [
-                "#50a3ba",
-                "#eac763",
-                "#d94e5d"
-            ]
-        },
-        "calculable": true,
-        "inverse": false,
-        "splitNumber": 5,
-        "orient": "vertical",
-        "showLabel": true,
-        "itemWidth": 20,
-        "itemHeight": 140,
-        "borderWidth": 0
-    },
-    "xAxis3D": {
-        "data": [
-            "2",
-            "3",
-            "4",
-            "5",
-            "6"
-        ],
-        "nameGap": 20,
-        "axisLabel": {
-            "margin": 8
-        }
-    },
-    "yAxis3D": {
-        "data": [
-            2,
-            3,
-            4,
-            5,
-            6,
-            7,
-            8,
-            9,
-            10,
-            11
-        ],
-        "nameGap": 20,
-        "axisLabel": {
-            "margin": 8
-        }
-    },
-    "zAxis3D": {
-        "nameGap": 20,
-        "axisLabel": {
-            "margin": 8
-        }
-    },
-    "grid3D": {
-        "boxWidth": 200,
-        "boxHeight": 100,
-        "boxDepth": 80,
-        "viewControl": {
-            "autoRotate": false,
-            "autoRotateSpeed": 10,
-            "rotateSensitivity": 1
-        }
-    },
-    "title": [
-        {
-            "text": "Sheet[0]3D\u6563\u70b9\u56fe",
-            "subtext": "CoTan~\u673a\u5668\u5b66\u4e60:",
-            "padding": 5,
-            "itemGap": 10
-        }
-    ],
-    "toolbox": {
-        "show": true,
-        "orient": "horizontal",
-        "itemSize": 15,
-        "itemGap": 10,
-        "left": "80%",
-        "feature": {
-            "saveAsImage": {
-                "show": true,
-                "title": "save as image",
-                "type": "png"
-            },
-            "restore": {
-                "show": true,
-                "title": "restore"
-            },
-            "dataView": {
-                "show": true,
-                "title": "data view",
-                "readOnly": false
-            },
-            "dataZoom": {
-                "show": true,
-                "title": {
-                    "zoom": "data zoom",
-                    "back": "data zoom restore"
-                }
-            }
-        }
-    }
-};
-        chart_f19ec415627141289ec78da3ee9442fd.setOption(option_f19ec415627141289ec78da3ee9442fd);
-    </script>
-    </div>
-
-    <script>
-    </script>
-    <script>
-        (function() {
-            containers = document.getElementsByClassName("chart-container");
-            if(containers.length > 0) {
-                containers[0].style.display = "block";
-            }
-        })()
-
-        function showChart(evt, chartID) {
-            let containers = document.getElementsByClassName("chart-container");
-            for (let i = 0; i < containers.length; i++) {
-                containers[i].style.display = "none";
-            }
-
-            let tablinks = document.getElementsByClassName("tablinks");
-            for (let i = 0; i < tablinks.length; i++) {
-                tablinks[i].className = "tablinks";
-            }
-
-            document.getElementById(chartID).style.display = "block";
-            evt.currentTarget.className += " active";
-        }
-    </script>
-</body>
-</html>

+ 0 - 629
$Pic.html

@@ -1,629 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="UTF-8">
-    <title>Awesome-pyecharts</title>
-            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
-        <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts-gl.min.js"></script>
-
-</head>
-<body>
-    <div id="e952332b7071422aab8071ffc0292b30" class="chart-container" style="width:900px; height:500px;"></div>
-    <script>
-        var chart_e952332b7071422aab8071ffc0292b30 = echarts.init(
-            document.getElementById('e952332b7071422aab8071ffc0292b30'), 'white', {renderer: 'canvas'});
-        var option_e952332b7071422aab8071ffc0292b30 = {
-    "animation": true,
-    "animationThreshold": 2000,
-    "animationDuration": 1000,
-    "animationEasing": "cubicOut",
-    "animationDelay": 0,
-    "animationDurationUpdate": 300,
-    "animationEasingUpdate": "cubicOut",
-    "animationDelayUpdate": 0,
-    "color": [
-        "#c23531",
-        "#2f4554",
-        "#61a0a8",
-        "#d48265",
-        "#749f83",
-        "#ca8622",
-        "#bda29a",
-        "#6e7074",
-        "#546570",
-        "#c4ccd3",
-        "#f05b72",
-        "#ef5b9c",
-        "#f47920",
-        "#905a3d",
-        "#fab27b",
-        "#2a5caa",
-        "#444693",
-        "#726930",
-        "#b2d235",
-        "#6d8346",
-        "#ac6767",
-        "#1d953f",
-        "#6950a1",
-        "#918597"
-    ],
-    "series": [
-        {
-            "type": "line3D",
-            "name": "Sheet[0]",
-            "data": [
-                [
-                    0,
-                    0,
-                    3.0
-                ],
-                [
-                    0,
-                    1,
-                    4.0
-                ],
-                [
-                    0,
-                    2,
-                    5.0
-                ],
-                [
-                    0,
-                    3,
-                    6.0
-                ],
-                [
-                    0,
-                    4,
-                    7.0
-                ],
-                [
-                    0,
-                    5,
-                    8.0
-                ],
-                [
-                    0,
-                    6,
-                    9.0
-                ],
-                [
-                    0,
-                    7,
-                    10.0
-                ],
-                [
-                    0,
-                    8,
-                    11.0
-                ],
-                [
-                    0,
-                    9,
-                    12.0
-                ],
-                [
-                    0,
-                    10,
-                    13.0
-                ],
-                [
-                    0,
-                    11,
-                    14.0
-                ],
-                [
-                    0,
-                    12,
-                    15.0
-                ],
-                [
-                    0,
-                    13,
-                    16.0
-                ],
-                [
-                    0,
-                    14,
-                    17.0
-                ],
-                [
-                    0,
-                    15,
-                    18.0
-                ],
-                [
-                    0,
-                    16,
-                    19.0
-                ],
-                [
-                    0,
-                    17,
-                    20.0
-                ],
-                [
-                    1,
-                    0,
-                    4.0
-                ],
-                [
-                    1,
-                    1,
-                    5.0
-                ],
-                [
-                    1,
-                    2,
-                    6.0
-                ],
-                [
-                    1,
-                    3,
-                    7.0
-                ],
-                [
-                    1,
-                    4,
-                    8.0
-                ],
-                [
-                    1,
-                    5,
-                    9.0
-                ],
-                [
-                    1,
-                    6,
-                    10.0
-                ],
-                [
-                    1,
-                    7,
-                    11.0
-                ],
-                [
-                    1,
-                    8,
-                    12.0
-                ],
-                [
-                    1,
-                    9,
-                    13.0
-                ],
-                [
-                    1,
-                    10,
-                    14.0
-                ],
-                [
-                    1,
-                    11,
-                    15.0
-                ],
-                [
-                    1,
-                    12,
-                    16.0
-                ],
-                [
-                    1,
-                    13,
-                    17.0
-                ],
-                [
-                    1,
-                    14,
-                    18.0
-                ],
-                [
-                    1,
-                    15,
-                    19.0
-                ],
-                [
-                    1,
-                    16,
-                    20.0
-                ],
-                [
-                    1,
-                    17,
-                    21.0
-                ],
-                [
-                    2,
-                    0,
-                    5.0
-                ],
-                [
-                    2,
-                    1,
-                    6.0
-                ],
-                [
-                    2,
-                    2,
-                    7.0
-                ],
-                [
-                    2,
-                    3,
-                    8.0
-                ],
-                [
-                    2,
-                    4,
-                    9.0
-                ],
-                [
-                    2,
-                    5,
-                    10.0
-                ],
-                [
-                    2,
-                    6,
-                    11.0
-                ],
-                [
-                    2,
-                    7,
-                    12.0
-                ],
-                [
-                    2,
-                    8,
-                    13.0
-                ],
-                [
-                    2,
-                    9,
-                    14.0
-                ],
-                [
-                    2,
-                    10,
-                    15.0
-                ],
-                [
-                    2,
-                    11,
-                    16.0
-                ],
-                [
-                    2,
-                    12,
-                    17.0
-                ],
-                [
-                    2,
-                    13,
-                    18.0
-                ],
-                [
-                    2,
-                    14,
-                    19.0
-                ],
-                [
-                    2,
-                    15,
-                    20.0
-                ],
-                [
-                    2,
-                    16,
-                    21.0
-                ],
-                [
-                    2,
-                    17,
-                    22.0
-                ],
-                [
-                    3,
-                    0,
-                    6.0
-                ],
-                [
-                    3,
-                    1,
-                    7.0
-                ],
-                [
-                    3,
-                    2,
-                    8.0
-                ],
-                [
-                    3,
-                    3,
-                    9.0
-                ],
-                [
-                    3,
-                    4,
-                    10.0
-                ],
-                [
-                    3,
-                    5,
-                    11.0
-                ],
-                [
-                    3,
-                    6,
-                    12.0
-                ],
-                [
-                    3,
-                    7,
-                    13.0
-                ],
-                [
-                    3,
-                    8,
-                    14.0
-                ],
-                [
-                    3,
-                    9,
-                    15.0
-                ],
-                [
-                    3,
-                    10,
-                    16.0
-                ],
-                [
-                    3,
-                    11,
-                    17.0
-                ],
-                [
-                    3,
-                    12,
-                    18.0
-                ],
-                [
-                    3,
-                    13,
-                    19.0
-                ],
-                [
-                    3,
-                    14,
-                    20.0
-                ],
-                [
-                    3,
-                    15,
-                    21.0
-                ],
-                [
-                    3,
-                    16,
-                    22.0
-                ],
-                [
-                    3,
-                    17,
-                    23.0
-                ],
-                [
-                    4,
-                    0,
-                    7.0
-                ],
-                [
-                    4,
-                    1,
-                    8.0
-                ],
-                [
-                    4,
-                    2,
-                    9.0
-                ],
-                [
-                    4,
-                    3,
-                    10.0
-                ],
-                [
-                    4,
-                    4,
-                    11.0
-                ],
-                [
-                    4,
-                    5,
-                    12.0
-                ],
-                [
-                    4,
-                    6,
-                    13.0
-                ],
-                [
-                    4,
-                    7,
-                    14.0
-                ],
-                [
-                    4,
-                    8,
-                    15.0
-                ],
-                [
-                    4,
-                    9,
-                    16.0
-                ],
-                [
-                    4,
-                    10,
-                    17.0
-                ],
-                [
-                    4,
-                    11,
-                    18.0
-                ],
-                [
-                    4,
-                    12,
-                    19.0
-                ],
-                [
-                    4,
-                    13,
-                    20.0
-                ],
-                [
-                    4,
-                    14,
-                    21.0
-                ],
-                [
-                    4,
-                    15,
-                    22.0
-                ],
-                [
-                    4,
-                    16,
-                    23.0
-                ],
-                [
-                    4,
-                    17,
-                    24.0
-                ]
-            ],
-            "label": {
-                "show": false,
-                "position": "top",
-                "margin": 8
-            }
-        }
-    ],
-    "legend": [
-        {
-            "data": [
-                "Sheet[0]"
-            ],
-            "selected": {},
-            "show": true,
-            "padding": 5,
-            "itemGap": 10,
-            "itemWidth": 25,
-            "itemHeight": 14
-        }
-    ],
-    "tooltip": {
-        "show": true,
-        "trigger": "item",
-        "triggerOn": "mousemove|click",
-        "axisPointer": {
-            "type": "line"
-        },
-        "textStyle": {
-            "fontSize": 14
-        },
-        "borderWidth": 0
-    },
-    "visualMap": {
-        "show": true,
-        "type": "continuous",
-        "min": 3.0,
-        "max": 24.0,
-        "inRange": {
-            "color": [
-                "#50a3ba",
-                "#eac763",
-                "#d94e5d"
-            ]
-        },
-        "calculable": true,
-        "inverse": false,
-        "splitNumber": 5,
-        "orient": "vertical",
-        "showLabel": true,
-        "itemWidth": 20,
-        "itemHeight": 140,
-        "borderWidth": 0
-    },
-    "xAxis3D": {
-        "data": [
-            "2",
-            "3",
-            "4",
-            "5",
-            "6"
-        ],
-        "nameGap": 20,
-        "type": "value",
-        "axisLabel": {
-            "margin": 8
-        }
-    },
-    "yAxis3D": {
-        "data": [
-            2,
-            3,
-            4,
-            5,
-            6,
-            7,
-            8,
-            9,
-            10,
-            11,
-            12,
-            13,
-            14,
-            15,
-            16,
-            17,
-            18,
-            19
-        ],
-        "nameGap": 20,
-        "type": "value",
-        "axisLabel": {
-            "margin": 8
-        }
-    },
-    "zAxis3D": {
-        "nameGap": 20,
-        "type": "value",
-        "axisLabel": {
-            "margin": 8
-        }
-    },
-    "grid3D": {
-        "boxWidth": 100,
-        "boxHeight": 100,
-        "boxDepth": 100,
-        "viewControl": {
-            "autoRotate": false,
-            "autoRotateSpeed": 10,
-            "rotateSensitivity": 1
-        }
-    },
-    "title": [
-        {
-            "text": "Sheet[0]3D\u6298\u7ebf\u56fe",
-            "subtext": "CoTan~\u673a\u5668\u5b66\u4e60",
-            "padding": 5,
-            "itemGap": 10
-        }
-    ]
-};
-        chart_e952332b7071422aab8071ffc0292b30.setOption(option_e952332b7071422aab8071ffc0292b30);
-    </script>
-</body>
-</html>

File diff suppressed because it is too large
+ 0 - 5
$Show_Des_Sheet.html


+ 0 - 433
$Show_Sheet.html

@@ -1,433 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="UTF-8">
-    <title>CoTan:查看表格</title>
-    
-    
-</head>
-<body>
-        <style>
-        .tab {
-            overflow: hidden;
-            border: 1px solid #ccc;
-            background-color: #f1f1f1;
-        }
-
-        .tab button {
-            background-color: inherit;
-            float: left;
-            border: none;
-            outline: none;
-            cursor: pointer;
-            padding: 12px 16px;
-            transition: 0.3s;
-        }
-
-        .tab button:hover {
-            background-color: #ddd;
-        }
-
-        .tab button.active {
-            background-color: #ccc;
-        }
-
-        .chart-container {
-            display: none;
-            padding: 6px 12px;
-            border-top: none;
-        }
-    </style>
-    <div class="tab">
-            <button class="tablinks" onclick="showChart(event, '88fed6788ece44b0a7e06ff69286761e')">表格:Sheet[0]</button>
-            <button class="tablinks" onclick="showChart(event, '88fed6788ece44b0a7e06ff69286761e')">表格:Sheet[0]</button>
-            <button class="tablinks" onclick="showChart(event, '88fed6788ece44b0a7e06ff69286761e')">表格:Sheet[0]</button>
-            <button class="tablinks" onclick="showChart(event, '88fed6788ece44b0a7e06ff69286761e')">表格:Sheet[0]</button>
-    </div>
-
-    <div class="box">
-                        <style>
-            .fl-table {
-                margin: 20px;
-                border-radius: 5px;
-                font-size: 12px;
-                border: none;
-                border-collapse: collapse;
-                max-width: 100%;
-                white-space: nowrap;
-                word-break: keep-all;
-            }
-
-            .fl-table th {
-                text-align: left;
-                font-size: 20px;
-            }
-
-            .fl-table tr {
-                display: table-row;
-                vertical-align: inherit;
-                border-color: inherit;
-            }
-
-            .fl-table tr:hover td {
-                background: #00d1b2;
-                color: #F8F8F8;
-            }
-
-            .fl-table td, .fl-table th {
-                border-style: none;
-                border-top: 1px solid #dbdbdb;
-                border-left: 1px solid #dbdbdb;
-                border-bottom: 3px solid #dbdbdb;
-                border-right: 1px solid #dbdbdb;
-                padding: .5em .55em;
-                font-size: 15px;
-            }
-
-            .fl-table td {
-                border-style: none;
-                font-size: 15px;
-                vertical-align: center;
-                border-bottom: 1px solid #dbdbdb;
-                border-left: 1px solid #dbdbdb;
-                border-right: 1px solid #dbdbdb;
-                height: 30px;
-            }
-
-            .fl-table tr:nth-child(even) {
-                background: #F8F8F8;
-            }
-        </style>
-        <div id="88fed6788ece44b0a7e06ff69286761e" class="chart-container" style="">
-            <p class="title" style="font-size: 18px; font-weight:bold;" > 表格:Sheet[0]</p>
-            <p class="subtitle" style="font-size: 12px;" > CoTan~机器学习:查看表格</p>
-            <table class="fl-table">
-    <tr>
-        <th>Sheet[0]</th>
-        <th>2</th>
-        <th>3</th>
-        <th>4</th>
-    </tr>
-    <tr>
-        <td>广东</td>
-        <td>12</td>
-        <td>北京</td>
-        <td>[##H]4</td>
-    </tr>
-    <tr>
-        <td>湖北</td>
-        <td>8</td>
-        <td>北京</td>
-        <td>[##H]19</td>
-    </tr>
-    <tr>
-        <td>上海</td>
-        <td>6</td>
-        <td>北京</td>
-        <td>[##S]19</td>
-    </tr>
-    <tr>
-        <td>北京</td>
-        <td>7</td>
-        <td>新疆</td>
-        <td>[##S]20</td>
-    </tr>
-</table>
-        </div>
-
-                        <style>
-            .fl-table {
-                margin: 20px;
-                border-radius: 5px;
-                font-size: 12px;
-                border: none;
-                border-collapse: collapse;
-                max-width: 100%;
-                white-space: nowrap;
-                word-break: keep-all;
-            }
-
-            .fl-table th {
-                text-align: left;
-                font-size: 20px;
-            }
-
-            .fl-table tr {
-                display: table-row;
-                vertical-align: inherit;
-                border-color: inherit;
-            }
-
-            .fl-table tr:hover td {
-                background: #00d1b2;
-                color: #F8F8F8;
-            }
-
-            .fl-table td, .fl-table th {
-                border-style: none;
-                border-top: 1px solid #dbdbdb;
-                border-left: 1px solid #dbdbdb;
-                border-bottom: 3px solid #dbdbdb;
-                border-right: 1px solid #dbdbdb;
-                padding: .5em .55em;
-                font-size: 15px;
-            }
-
-            .fl-table td {
-                border-style: none;
-                font-size: 15px;
-                vertical-align: center;
-                border-bottom: 1px solid #dbdbdb;
-                border-left: 1px solid #dbdbdb;
-                border-right: 1px solid #dbdbdb;
-                height: 30px;
-            }
-
-            .fl-table tr:nth-child(even) {
-                background: #F8F8F8;
-            }
-        </style>
-        <div id="88fed6788ece44b0a7e06ff69286761e" class="chart-container" style="">
-            <p class="title" style="font-size: 18px; font-weight:bold;" > 表格:Sheet[0]</p>
-            <p class="subtitle" style="font-size: 12px;" > CoTan~机器学习:查看表格</p>
-            <table class="fl-table">
-    <tr>
-        <th>Sheet[0]</th>
-        <th>2</th>
-        <th>3</th>
-        <th>4</th>
-    </tr>
-    <tr>
-        <td>广东</td>
-        <td>12</td>
-        <td>北京</td>
-        <td>[##H]4</td>
-    </tr>
-    <tr>
-        <td>湖北</td>
-        <td>8</td>
-        <td>北京</td>
-        <td>[##H]19</td>
-    </tr>
-    <tr>
-        <td>上海</td>
-        <td>6</td>
-        <td>北京</td>
-        <td>[##S]19</td>
-    </tr>
-    <tr>
-        <td>北京</td>
-        <td>7</td>
-        <td>新疆</td>
-        <td>[##S]20</td>
-    </tr>
-</table>
-        </div>
-
-                        <style>
-            .fl-table {
-                margin: 20px;
-                border-radius: 5px;
-                font-size: 12px;
-                border: none;
-                border-collapse: collapse;
-                max-width: 100%;
-                white-space: nowrap;
-                word-break: keep-all;
-            }
-
-            .fl-table th {
-                text-align: left;
-                font-size: 20px;
-            }
-
-            .fl-table tr {
-                display: table-row;
-                vertical-align: inherit;
-                border-color: inherit;
-            }
-
-            .fl-table tr:hover td {
-                background: #00d1b2;
-                color: #F8F8F8;
-            }
-
-            .fl-table td, .fl-table th {
-                border-style: none;
-                border-top: 1px solid #dbdbdb;
-                border-left: 1px solid #dbdbdb;
-                border-bottom: 3px solid #dbdbdb;
-                border-right: 1px solid #dbdbdb;
-                padding: .5em .55em;
-                font-size: 15px;
-            }
-
-            .fl-table td {
-                border-style: none;
-                font-size: 15px;
-                vertical-align: center;
-                border-bottom: 1px solid #dbdbdb;
-                border-left: 1px solid #dbdbdb;
-                border-right: 1px solid #dbdbdb;
-                height: 30px;
-            }
-
-            .fl-table tr:nth-child(even) {
-                background: #F8F8F8;
-            }
-        </style>
-        <div id="88fed6788ece44b0a7e06ff69286761e" class="chart-container" style="">
-            <p class="title" style="font-size: 18px; font-weight:bold;" > 表格:Sheet[0]</p>
-            <p class="subtitle" style="font-size: 12px;" > CoTan~机器学习:查看表格</p>
-            <table class="fl-table">
-    <tr>
-        <th>Sheet[0]</th>
-        <th>2</th>
-        <th>3</th>
-        <th>4</th>
-    </tr>
-    <tr>
-        <td>广东</td>
-        <td>12</td>
-        <td>北京</td>
-        <td>[##H]4</td>
-    </tr>
-    <tr>
-        <td>湖北</td>
-        <td>8</td>
-        <td>北京</td>
-        <td>[##H]19</td>
-    </tr>
-    <tr>
-        <td>上海</td>
-        <td>6</td>
-        <td>北京</td>
-        <td>[##S]19</td>
-    </tr>
-    <tr>
-        <td>北京</td>
-        <td>7</td>
-        <td>新疆</td>
-        <td>[##S]20</td>
-    </tr>
-</table>
-        </div>
-
-                        <style>
-            .fl-table {
-                margin: 20px;
-                border-radius: 5px;
-                font-size: 12px;
-                border: none;
-                border-collapse: collapse;
-                max-width: 100%;
-                white-space: nowrap;
-                word-break: keep-all;
-            }
-
-            .fl-table th {
-                text-align: left;
-                font-size: 20px;
-            }
-
-            .fl-table tr {
-                display: table-row;
-                vertical-align: inherit;
-                border-color: inherit;
-            }
-
-            .fl-table tr:hover td {
-                background: #00d1b2;
-                color: #F8F8F8;
-            }
-
-            .fl-table td, .fl-table th {
-                border-style: none;
-                border-top: 1px solid #dbdbdb;
-                border-left: 1px solid #dbdbdb;
-                border-bottom: 3px solid #dbdbdb;
-                border-right: 1px solid #dbdbdb;
-                padding: .5em .55em;
-                font-size: 15px;
-            }
-
-            .fl-table td {
-                border-style: none;
-                font-size: 15px;
-                vertical-align: center;
-                border-bottom: 1px solid #dbdbdb;
-                border-left: 1px solid #dbdbdb;
-                border-right: 1px solid #dbdbdb;
-                height: 30px;
-            }
-
-            .fl-table tr:nth-child(even) {
-                background: #F8F8F8;
-            }
-        </style>
-        <div id="88fed6788ece44b0a7e06ff69286761e" class="chart-container" style="">
-            <p class="title" style="font-size: 18px; font-weight:bold;" > 表格:Sheet[0]</p>
-            <p class="subtitle" style="font-size: 12px;" > CoTan~机器学习:查看表格</p>
-            <table class="fl-table">
-    <tr>
-        <th>Sheet[0]</th>
-        <th>2</th>
-        <th>3</th>
-        <th>4</th>
-    </tr>
-    <tr>
-        <td>广东</td>
-        <td>12</td>
-        <td>北京</td>
-        <td>[##H]4</td>
-    </tr>
-    <tr>
-        <td>湖北</td>
-        <td>8</td>
-        <td>北京</td>
-        <td>[##H]19</td>
-    </tr>
-    <tr>
-        <td>上海</td>
-        <td>6</td>
-        <td>北京</td>
-        <td>[##S]19</td>
-    </tr>
-    <tr>
-        <td>北京</td>
-        <td>7</td>
-        <td>新疆</td>
-        <td>[##S]20</td>
-    </tr>
-</table>
-        </div>
-
-    </div>
-
-    <script>
-    </script>
-    <script>
-        (function() {
-            containers = document.getElementsByClassName("chart-container");
-            if(containers.length > 0) {
-                containers[0].style.display = "block";
-            }
-        })()
-
-        function showChart(evt, chartID) {
-            let containers = document.getElementsByClassName("chart-container");
-            for (let i = 0; i < containers.length; i++) {
-                containers[i].style.display = "none";
-            }
-
-            let tablinks = document.getElementsByClassName("tablinks");
-            for (let i = 0; i < tablinks.length; i++) {
-                tablinks[i].className = "tablinks";
-            }
-
-            document.getElementById(chartID).style.display = "block";
-            evt.currentTarget.className += " active";
-        }
-    </script>
-</body>
-</html>

File diff suppressed because it is too large
+ 378 - 306
Data_Science/Learn.py


+ 253 - 140
Me_learn.py → Data_Science/Me_learn.py

@@ -1,7 +1,7 @@
 import tkinter
 import tkinter
 from tkinter.filedialog import askopenfilename, asksaveasfilename
 from tkinter.filedialog import askopenfilename, asksaveasfilename
 import tkinter.messagebox
 import tkinter.messagebox
-import Learn
+from Data_Science import Learn
 import webbrowser
 import webbrowser
 import os
 import os
 from tkinter.scrolledtext import ScrolledText
 from tkinter.scrolledtext import ScrolledText
@@ -86,7 +86,7 @@ max_Visual_mapping #映射的最大值
 def Machine_learning():
 def Machine_learning():
     global top, ML, Form_List, PATH, bg, ft1, Stored_List, Clean_List, R_Dic, Over_Up, Over_Down,Learn_Dic
     global top, ML, Form_List, PATH, bg, ft1, Stored_List, Clean_List, R_Dic, Over_Up, Over_Down,Learn_Dic
     R_Dic = {}  # 保存了画图的List
     R_Dic = {}  # 保存了画图的List
-    Learn_Dic = {} #保存机器学习
+    Learn_Dic = {} #保存数据处理
     PATH = os.getcwd()
     PATH = os.getcwd()
     Form_List = []
     Form_List = []
     ML = Learn.Machine_Learner()
     ML = Learn.Machine_Learner()
@@ -97,7 +97,7 @@ def Machine_learning():
     top["bg"] = bg
     top["bg"] = bg
     FONT = ('黑体', 11)  # 设置字体
     FONT = ('黑体', 11)  # 设置字体
     ft1 = ('黑体', 13)
     ft1 = ('黑体', 13)
-    top.title('CoTan机器学习')
+    top.title('CoTan数据处理')
     top.resizable(width=False, height=False)
     top.resizable(width=False, height=False)
     top.geometry('+10+10')  # 设置所在位置
     top.geometry('+10+10')  # 设置所在位置
     width_B = 13  # 标准宽度
     width_B = 13  # 标准宽度
@@ -116,18 +116,24 @@ def Machine_learning():
     tkinter.Button(top, bg=bbg, fg=fg, text='导入Py', command=Add_Python, font=FONT, width=width_B,
     tkinter.Button(top, bg=bbg, fg=fg, text='导入Py', command=Add_Python, font=FONT, width=width_B,
                    height=height_B).grid(column=a_x + 1, row=a_y,
                    height=height_B).grid(column=a_x + 1, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='导入HTML', command=Add_Html, font=FONT, width=width_B,
-                   height=height_B).grid(column=a_x + 2, row=a_y,
-                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
+    tkinter.Button(top, bg=bbg, fg=fg, text='导出CSV', command=to_CSV,font=FONT, width=width_B,
+                   height=height_B).grid(column=a_x + 2, row=a_y,sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
 
 
+    global name_Input
     a_y += 1
     a_y += 1
-    tkinter.Button(top, bg=bbg, fg=fg, text='删除表格', font=FONT, width=width_B,
+    tkinter.Label(top, text='表格名称:', bg=bg, fg=fg, font=FONT, width=width_B, height=height_B).grid(column=a_x,
+                                                                                                   row=a_y)  # 设置说明
+    name_Input = tkinter.Entry(top, width=width_B)
+    name_Input.grid(column=a_x + 1, row=a_y,columnspan=2, sticky=tkinter.E + tkinter.W)
+
+    a_y += 1
+    tkinter.Button(top, bg=bbg, fg=fg, text='删除表格',command=Del_Sheet, font=FONT, width=width_B,
                    height=height_B).grid(column=a_x, row=a_y,
                    height=height_B).grid(column=a_x, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
     tkinter.Button(top, bg=bbg, fg=fg, text='查看表格', command=Show, font=FONT, width=width_B,
     tkinter.Button(top, bg=bbg, fg=fg, text='查看表格', command=Show, font=FONT, width=width_B,
                    height=height_B).grid(column=a_x + 1, row=a_y,
                    height=height_B).grid(column=a_x + 1, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='清空表格', font=FONT, width=width_B,
+    tkinter.Button(top, bg=bbg, fg=fg, text='查看单一表格', command=Show_One,font=FONT, width=width_B,
                    height=height_B).grid(column=a_x + 2, row=a_y,
                    height=height_B).grid(column=a_x + 2, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
 
 
@@ -150,7 +156,6 @@ def Machine_learning():
     buttom = tkinter.Checkbutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg,
     buttom = tkinter.Checkbutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg,
                                  text='字符串类型',
                                  text='字符串类型',
                                  variable=str_must)
                                  variable=str_must)
-    buttom.select()
     buttom.grid(column=a_x + 2, row=a_y, sticky=tkinter.W)
     buttom.grid(column=a_x + 2, row=a_y, sticky=tkinter.W)
 
 
     a_y += 1
     a_y += 1
@@ -195,11 +200,11 @@ def Machine_learning():
     # 其中数字1-6是第一行,1-c是第二行,第二行在第一行下面,row变大向下移动(Row是横向行而不是横向移动) to 搞不清楚横行竖列的人
     # 其中数字1-6是第一行,1-c是第二行,第二行在第一行下面,row变大向下移动(Row是横向行而不是横向移动) to 搞不清楚横行竖列的人
 
 
     a_y += 1
     a_y += 1
-    Index_BOX = tkinter.Listbox(top, width=width_B * 3, height=height_B * 3)  # 显示符号
-    Index_BOX.grid(column=a_x, row=a_y, columnspan=3, rowspan=3, sticky=tkinter.E + tkinter.W + tkinter.S + tkinter.N)
+    Index_BOX = tkinter.Listbox(top, width=width_B * 3, height=height_B * 10)  # 显示符号
+    Index_BOX.grid(column=a_x, row=a_y, columnspan=3, rowspan=10, sticky=tkinter.E + tkinter.W + tkinter.S + tkinter.N)
 
 
     global Des_Bool
     global Des_Bool
-    a_y += 3
+    a_y += 10
     tkinter.Button(top, bg=bbg, fg=fg, text='查看数据分析', command=Show_Des, font=FONT, width=width_B,
     tkinter.Button(top, bg=bbg, fg=fg, text='查看数据分析', command=Show_Des, font=FONT, width=width_B,
                    height=height_B).grid(column=a_x, row=a_y,
                    height=height_B).grid(column=a_x, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
@@ -210,58 +215,6 @@ def Machine_learning():
     tkinter.Checkbutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text='生成统计表格',
     tkinter.Checkbutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text='生成统计表格',
                         variable=Des_Bool).grid(column=a_x + 2, row=a_y, sticky=tkinter.W)
                         variable=Des_Bool).grid(column=a_x + 2, row=a_y, sticky=tkinter.W)
 
 
-    a_y += 1
-    tkinter.Label(top, text='【排序操作】', bg=bg, fg=fg, font=FONT, width=width_B * 3, height=height_B).grid(column=a_x,
-                                                                                                        columnspan=3,
-                                                                                                        row=a_y)  # 设置说明
-
-    a_y += 1
-    tkinter.Button(top, bg=bbg, fg=fg, text='表格转置', command=T, font=FONT, width=width_B,
-                   height=height_B).grid(column=a_x, row=a_y,
-                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='按行名排序', command=Stored_Row, font=FONT, width=width_B,
-                   height=height_B).grid(column=a_x + 1, row=a_y,
-                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='按列名排序', command=Stored_Column, font=FONT, width=width_B,
-                   height=height_B).grid(column=a_x + 2, row=a_y,
-                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-
-    global Sort_By, Ascending_Type, Ascending_New, Stored_BOX
-    a_y += 1
-    tkinter.Label(top, text='基准列(列号):', bg=bg, fg=fg, font=FONT, width=width_B, height=height_B).grid(column=a_x,
-                                                                                                      row=a_y)  # 设置说明
-    Sort_By = tkinter.Entry(top, width=width_B + 2)
-    Sort_By.grid(column=a_x + 1, row=a_y, sticky=tkinter.W)
-    tkinter.Button(top, bg=bbg, fg=fg, text='按数据排序', command=Stored_Value, font=FONT, width=width_B,
-                   height=height_B).grid(column=a_x + 2, row=a_y,
-                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-
-    a_y += 1
-    Ascending_Type = tkinter.IntVar()
-    Ascending_New = tkinter.IntVar()
-    lable = ['正序排列', '倒序排列']  # 复选框
-    for i in range(2):
-        tkinter.Radiobutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text=lable[i],
-                            variable=Ascending_Type, value=i). \
-            grid(column=a_x + i, row=a_y, sticky=tkinter.W)
-    tkinter.Checkbutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text='生成新表格',
-                        variable=Ascending_New).grid(column=a_x + 2, row=a_y, sticky=tkinter.W)
-
-    a_y += 1
-    Stored_BOX = tkinter.Listbox(top, width=width_B * 3, height=height_B * 3)  # 显示符号
-    Stored_BOX.grid(column=a_x, row=a_y, columnspan=3, rowspan=3, sticky=tkinter.E + tkinter.W + tkinter.S + tkinter.N)
-
-    a_y += 3
-    tkinter.Button(top, bg=bbg, fg=fg, text='添加基准', command=add_Stored_Value, font=FONT, width=width_B,
-                   height=height_B).grid(column=a_x, row=a_y,
-                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='删除基准', command=Delete_Stored_Value, font=FONT, width=width_B,
-                   height=height_B).grid(column=a_x + 1, row=a_y,
-                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='清空基准', command=Tra_Stored_Value, font=FONT, width=width_B,
-                   height=height_B).grid(column=a_x + 2, row=a_y,
-                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-
     a_x += 3
     a_x += 3
     tkinter.Label(top, text='', bg=bg, fg=fg, font=FONT, width=1).grid(column=a_x, row=a_y)  # 设置说明
     tkinter.Label(top, text='', bg=bg, fg=fg, font=FONT, width=1).grid(column=a_x, row=a_y)  # 设置说明
     a_x += 1
     a_x += 1
@@ -530,10 +483,10 @@ def Machine_learning():
     a_y += 2
     a_y += 2
     global Draw_asWell
     global Draw_asWell
     Draw_asWell = tkinter.IntVar()
     Draw_asWell = tkinter.IntVar()
-    tkinter.Button(top, bg=bbg, fg=fg, text='清空渲染', command=Draw, font=FONT, width=width_B,
+    tkinter.Button(top, bg=bbg, fg=fg, text='清空渲染', command=Tra_RDic, font=FONT, width=width_B,
                    height=height_B).grid(column=a_x, row=a_y,
                    height=height_B).grid(column=a_x, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='导入渲染', command=Draw, font=FONT, width=width_B,
+    tkinter.Button(top, bg=bbg, fg=fg, text='导入渲染', command=Import_c, font=FONT, width=width_B,
                    height=height_B).grid(column=a_x + 1, row=a_y,
                    height=height_B).grid(column=a_x + 1, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
     tkinter.Checkbutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text='马上渲染',
     tkinter.Checkbutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text='马上渲染',
@@ -543,10 +496,10 @@ def Machine_learning():
     Args_Input.grid(column=a_x, row=a_y, columnspan=3, rowspan=7, sticky=tkinter.E + tkinter.W + tkinter.N + tkinter.S)
     Args_Input.grid(column=a_x, row=a_y, columnspan=3, rowspan=7, sticky=tkinter.E + tkinter.W + tkinter.N + tkinter.S)
 
 
     a_y += 7
     a_y += 7
-    tkinter.Button(top, bg=bbg, fg=fg, text='查看词典', font=FONT, width=width_B,
+    tkinter.Button(top, bg=bbg, fg=fg, text='查看词典',command=Show_Help, font=FONT, width=width_B,
                    height=height_B).grid(column=a_x, row=a_y,
                    height=height_B).grid(column=a_x, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='恢复显示', font=FONT, width=width_B,
+    tkinter.Button(top, bg=bbg, fg=fg, text='恢复显示',command=Show_Help, font=FONT, width=width_B,
                    height=height_B).grid(column=a_x + 1, row=a_y, columnspan=2,
                    height=height_B).grid(column=a_x + 1, row=a_y, columnspan=2,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
 
 
@@ -577,7 +530,7 @@ def Machine_learning():
         RC_Type.append(tkinter.IntVar())
         RC_Type.append(tkinter.IntVar())
         tkinter.Checkbutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text=lable[i],
         tkinter.Checkbutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text=lable[i],
                             variable=RC_Type[-1]).grid(column=a_x + i, row=a_y, sticky=tkinter.W)
                             variable=RC_Type[-1]).grid(column=a_x + i, row=a_y, sticky=tkinter.W)
-    tkinter.Button(top, bg=bbg, fg=fg, text='统一行号', command=num_toName, font=FONT, width=width_B, height=height_B). \
+    tkinter.Button(top, bg=bbg, fg=fg, text='统一行(列)号', command=num_toName, font=FONT, width=width_B, height=height_B). \
         grid(column=a_x + 2, row=a_y, sticky=tkinter.E + tkinter.W)
         grid(column=a_x + 2, row=a_y, sticky=tkinter.E + tkinter.W)
 
 
     a_y += 1
     a_y += 1
@@ -653,8 +606,66 @@ def Machine_learning():
         tkinter.Radiobutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text=lable[i],
         tkinter.Radiobutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text=lable[i],
                             variable=Dtype_Func, value=i).grid(column=a_x + 1 + i, row=a_y, sticky=tkinter.W)
                             variable=Dtype_Func, value=i).grid(column=a_x + 1 + i, row=a_y, sticky=tkinter.W)
 
 
+
     a_y += 1
     a_y += 1
-    tkinter.Label(top, text='【机器学习与数据处理】', bg=bg, fg=fg, font=FONT, width=width_B * 3, height=height_B).grid(column=a_x,
+    tkinter.Label(top, text='【排序操作】', bg=bg, fg=fg, font=FONT, width=width_B * 3, height=height_B).grid(column=a_x,
+                                                                                                        columnspan=3,
+                                                                                                        row=a_y)  # 设置说明
+
+    a_y += 1
+    tkinter.Button(top, bg=bbg, fg=fg, text='.T', command=T, font=FONT, width=width_B,
+                   height=height_B).grid(column=a_x, row=a_y,
+                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
+    tkinter.Button(top, bg=bbg, fg=fg, text='按行名排序', command=Stored_Row, font=FONT, width=width_B,
+                   height=height_B).grid(column=a_x + 1, row=a_y,
+                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
+    tkinter.Button(top, bg=bbg, fg=fg, text='按列名排序', command=Stored_Column, font=FONT, width=width_B,
+                   height=height_B).grid(column=a_x + 2, row=a_y,
+                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
+
+    global Sort_By, Ascending_Type, Ascending_New, Stored_BOX
+    a_y += 1
+    tkinter.Label(top, text='基准列(列号):', bg=bg, fg=fg, font=FONT, width=width_B, height=height_B).grid(column=a_x,
+                                                                                                      row=a_y)  # 设置说明
+    Sort_By = tkinter.Entry(top, width=width_B + 2)
+    Sort_By.grid(column=a_x + 1, row=a_y, sticky=tkinter.W)
+    tkinter.Button(top, bg=bbg, fg=fg, text='按数据排序', command=Stored_Value, font=FONT, width=width_B,
+                   height=height_B).grid(column=a_x + 2, row=a_y,
+                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
+
+    a_y += 1
+    Ascending_Type = tkinter.IntVar()
+    Ascending_New = tkinter.IntVar()
+    lable = ['正序排列', '倒序排列']  # 复选框
+    for i in range(2):
+        tkinter.Radiobutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text=lable[i],
+                            variable=Ascending_Type, value=i). \
+            grid(column=a_x + i, row=a_y, sticky=tkinter.W)
+    tkinter.Checkbutton(top, bg=bg, fg=fg, activebackground=bg, activeforeground=fg, selectcolor=bg, text='生成新表格',
+                        variable=Ascending_New).grid(column=a_x + 2, row=a_y, sticky=tkinter.W)
+
+    a_y += 1
+    Stored_BOX = tkinter.Listbox(top, width=width_B * 3, height=height_B * 4)  # 显示符号
+    Stored_BOX.grid(column=a_x, row=a_y, columnspan=3, rowspan=5, sticky=tkinter.E + tkinter.W + tkinter.S + tkinter.N)
+
+    a_y += 5
+    tkinter.Button(top, bg=bbg, fg=fg, text='添加基准', command=add_Stored_Value, font=FONT, width=width_B,
+                   height=height_B).grid(column=a_x, row=a_y,
+                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
+    tkinter.Button(top, bg=bbg, fg=fg, text='删除基准', command=Delete_Stored_Value, font=FONT, width=width_B,
+                   height=height_B).grid(column=a_x + 1, row=a_y,
+                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
+    tkinter.Button(top, bg=bbg, fg=fg, text='打乱表格', command=Sample_Data, font=FONT, width=width_B,
+                   height=height_B).grid(column=a_x + 2, row=a_y,
+                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
+
+
+    a_x += 3
+    tkinter.Label(top, text='', bg=bg, fg=fg, font=FONT, width=1).grid(column=a_x, row=a_y)  # 设置说明
+    a_x += 1
+    a_y = 0
+
+    tkinter.Label(top, text='【机器学习】', bg=bg, fg=fg, font=FONT, width=width_B * 3, height=height_B).grid(column=a_x,
                                                                                                              columnspan=3,
                                                                                                              columnspan=3,
                                                                                                              row=a_y,
                                                                                                              row=a_y,
                                                                                                              sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)  # 设置说明
                                                                                                              sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)  # 设置说明
@@ -667,16 +678,22 @@ def Machine_learning():
     Put['state'] = 'readonly'
     Put['state'] = 'readonly'
     tkinter.Button(top, bg=bbg, fg=fg, text='选用学习器',command=set_Learner, font=FONT, width=width_B,height=height_B).grid(column=a_x+2, row=a_y, sticky=tkinter.E + tkinter.W)
     tkinter.Button(top, bg=bbg, fg=fg, text='选用学习器',command=set_Learner, font=FONT, width=width_B,height=height_B).grid(column=a_x+2, row=a_y, sticky=tkinter.E + tkinter.W)
 
 
+    global Split_Input
+    a_y += 1
+    tkinter.Label(top, text='测试数据分割:', bg=bg, fg=fg, font=FONT, width=width_B, height=height_B).grid(column=a_x,row=a_y)
+    Split_Input = tkinter.Entry(top, width=width_B * 2)
+    Split_Input.grid(column=a_x + 1, row=a_y, columnspan=2, sticky=tkinter.E + tkinter.W)
+
     a_y += 1
     a_y += 1
-    ML_BOX = tkinter.Listbox(top, width=width_B * 3, height=height_B*6)
-    ML_BOX.grid(column=a_x, row=a_y, columnspan=3, rowspan=6, sticky=tkinter.E + tkinter.W + tkinter.S + tkinter.N)
+    ML_BOX = tkinter.Listbox(top, width=width_B * 3, height=height_B*5)
+    ML_BOX.grid(column=a_x, row=a_y, columnspan=3, rowspan=5, sticky=tkinter.E + tkinter.W + tkinter.S + tkinter.N)
 
 
-    a_y += 6
+    a_y += 5
     tkinter.Button(top, bg=bbg, fg=fg, text='导入学习器', command=Draw, font=FONT, width=width_B,height=height_B).grid(column=a_x, row=a_y,
     tkinter.Button(top, bg=bbg, fg=fg, text='导入学习器', command=Draw, font=FONT, width=width_B,height=height_B).grid(column=a_x, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='查看数据', command=Draw_One, font=FONT, width=width_B,height=height_B).grid(column=a_x + 1, row=a_y,
+    tkinter.Button(top, bg=bbg, fg=fg, text='查看数据', command=Show_Args, font=FONT, width=width_B,height=height_B).grid(column=a_x + 1, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='数据可视化', command=Del_R_BOX, font=FONT, width=width_B,height=height_B).grid(column=a_x + 2, row=a_y,
+    tkinter.Button(top, bg=bbg, fg=fg, text='删除学习器', command=Del_Leaner, font=FONT, width=width_B,height=height_B).grid(column=a_x + 2, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
 
 
     a_y += 1
     a_y += 1
@@ -687,13 +704,8 @@ def Machine_learning():
     tkinter.Button(top, bg=bbg, fg=fg, text='数据预测', command=Predict_Learner, font=FONT, width=width_B,height=height_B).grid(column=a_x + 2, row=a_y,
     tkinter.Button(top, bg=bbg, fg=fg, text='数据预测', command=Predict_Learner, font=FONT, width=width_B,height=height_B).grid(column=a_x + 2, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
 
 
-
-    a_x += 3
-    tkinter.Label(top, text='', bg=bg, fg=fg, font=FONT, width=1).grid(column=a_x, row=a_y)  # 设置说明
-    a_x += 1
-    a_y = 0
-
-    tkinter.Label(top, text='【机器学习】', bg=bg, fg=fg, font=FONT, width=width_B * 3, height=height_B).grid(column=a_x,
+    a_y += 1
+    tkinter.Label(top, text='【学习器选择和配置】', bg=bg, fg=fg, font=FONT, width=width_B * 3, height=height_B).grid(column=a_x,
                                                                                                          columnspan=3,
                                                                                                          columnspan=3,
                                                                                                          row=a_y,
                                                                                                          row=a_y,
                                                                                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)  # 设置说明
                                                                                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)  # 设置说明
@@ -701,31 +713,85 @@ def Machine_learning():
     a_y += 1
     a_y += 1
     tkinter.Button(top, bg=bbg, fg=fg, text='线性回归', command=Add_Line, font=FONT, width=width_B,height=height_B).grid(column=a_x, row=a_y,
     tkinter.Button(top, bg=bbg, fg=fg, text='线性回归', command=Add_Line, font=FONT, width=width_B,height=height_B).grid(column=a_x, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='岭回归', command=Draw_One, font=FONT, width=width_B,height=height_B).grid(column=a_x + 1, row=a_y,
+    tkinter.Button(top, bg=bbg, fg=fg, text='岭回归', command=Add_Ridge, font=FONT, width=width_B,height=height_B).grid(column=a_x + 1, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='Lasso', command=Del_R_BOX, font=FONT, width=width_B,height=height_B).grid(column=a_x + 2, row=a_y,
+    tkinter.Button(top, bg=bbg, fg=fg, text='Lasso', command=Add_Lasso, font=FONT, width=width_B,height=height_B).grid(column=a_x + 2, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
 
 
     a_y += 1
     a_y += 1
-    tkinter.Button(top, bg=bbg, fg=fg, text='逻辑回归', command=Draw, font=FONT, width=width_B,height=height_B).grid(column=a_x, row=a_y,
+    tkinter.Button(top, bg=bbg, fg=fg, text='逻辑回归', command=Add_LogisticRegression, font=FONT, width=width_B,height=height_B).grid(column=a_x, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='决策树', command=Draw_One, font=FONT, width=width_B,height=height_B).grid(column=a_x + 1, row=a_y,
+    tkinter.Button(top, bg=bbg, fg=fg, text='决策树', command=ML_Sorry, font=FONT, width=width_B,height=height_B).grid(column=a_x + 1, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='SVM', command=Del_R_BOX, font=FONT, width=width_B,height=height_B).grid(column=a_x + 2, row=a_y,
+    tkinter.Button(top, bg=bbg, fg=fg, text='SVM', command=ML_Sorry, font=FONT, width=width_B,height=height_B).grid(column=a_x + 2, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
 
 
     a_y += 1
     a_y += 1
-    tkinter.Button(top, bg=bbg, fg=fg, text='朴素贝叶斯(先验为多)', command=Draw, font=FONT, width=width_B,height=height_B).grid(column=a_x, row=a_y,columnspan=2,
+    tkinter.Button(top, bg=bbg, fg=fg, text='朴素贝叶斯', command=ML_Sorry, font=FONT, width=width_B,height=height_B).grid(column=a_x, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
-    tkinter.Button(top, bg=bbg, fg=fg, text='K近邻', command=Del_R_BOX, font=FONT, width=width_B,height=height_B).grid(column=a_x + 2, row=a_y,
+    tkinter.Button(top, bg=bbg, fg=fg, text='K邻近分类', command=Add_Knn, font=FONT, width=width_B,height=height_B).grid(column=a_x + 1, row=a_y,
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
                                          sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
+    tkinter.Button(top, bg=bbg, fg=fg, text='K邻近预测', command=Add_Knn_Class, font=FONT, width=width_B,height=height_B).grid(column=a_x + 2, row=a_y,
+                                         sticky=tkinter.E + tkinter.W + tkinter.W + tkinter.S + tkinter.N)
+
+    global Args_Learner
+    a_y += 1
+    Args_Learner = tkinter.Text(top, width=width_B * 3, height=height_B * 11)
+    Args_Learner.grid(column=a_x, row=a_y, columnspan=3, rowspan=11, sticky=tkinter.E + tkinter.W + tkinter.N + tkinter.S)
+
     top.mainloop()
     top.mainloop()
 
 
 
 
+def Show_Help():
+    tkinter.messagebox.showinfo('使用提示', Args_Help)
+
+
+def ML_Sorry():
+    tkinter.messagebox.showinfo('非常抱歉', '高级别的机器学习请到机器学习板块深入研究...')
+
+
+def Tra_RDic():
+    ML.Tra_RDic()
+    Update_R_BOX()
+
+
+def Del_Sheet():
+    name = get_Name()
+    ML.Del_Form(name)
+    Updat_BOX()
+
+
+def Del_Leaner():
+    Learn = get_Learner(True)
+    set_Learne = get_Learner(False)#获取学习器Learner
+    if set_Learne != Learn:
+        ML.Del_Leaner(Learn)
+    Update_Leaner()
+
+
+def Show_Args():
+    learner = get_Learner(True)
+    new = tkinter.messagebox.askokcancel('提示', f'是否将数据生成表格。\n(可绘制成散点图对比数据)')
+    print(new)
+    Data = ML.Show_Args(learner,new)
+    title = f'CoTan数据处理 查看数据:{learner}'
+    Creat_TextSheet(f'对象:{learner}\n\n{Data[0]}\n\n\n{Data[1]}', title)
+    Updat_BOX()
+
+
+def get_Args_Learner():
+    global Args_Learner
+    return Args_Learner.get('0.0',tkinter.END)
+
+
 def Score_Learner():
 def Score_Learner():
     name = get_Name()#表格数据
     name = get_Name()#表格数据
     learner = get_Learner()
     learner = get_Learner()
-    socore = ML.Fit(name,learner,True)[1]
+    try:
+        split = float(Split_Input.get())
+        if split < 0 or 1 < split:raise Exception
+    except:split = 0.3
+    socore = ML.Fit(name,learner,Score_Only=True,split=split)[1]
     tkinter.messagebox.showinfo('测试完成', f'针对测试数据评分结果为:{socore}')
     tkinter.messagebox.showinfo('测试完成', f'针对测试数据评分结果为:{socore}')
 
 
 
 
@@ -733,7 +799,7 @@ def Predict_Learner():
     name = get_Name()#表格数据
     name = get_Name()#表格数据
     learner = get_Learner()
     learner = get_Learner()
     Data = ML.Predict(name,learner)
     Data = ML.Predict(name,learner)
-    title = f'CoTan机器学习 表格:{name} 学习器:{learner}'
+    title = f'CoTan数据处理 表格:{name} 学习器:{learner}'
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
 
 
@@ -741,9 +807,13 @@ def Predict_Learner():
 def Fit_Learner():
 def Fit_Learner():
     name = get_Name()#表格数据
     name = get_Name()#表格数据
     learner = get_Learner()
     learner = get_Learner()
-    socore = ML.Fit(name,learner)
-    tkinter.messagebox.showinfo('训练完成', f'针对训练数据(70%)评分结果为:{socore[0]}\n'
-                                        f'针对测试数据评分(30%)结果为:{socore[1]}')
+    try:
+        split = float(Split_Input.get())
+        if split < 0 or 1 < split:raise Exception
+    except:split = 0.3
+    socore = ML.Fit(name,learner,Text=get_Args_Learner(),split=split)
+    tkinter.messagebox.showinfo('训练完成', f'针对训练数据({(1-split)*100}%)评分结果为:{socore[0]}\n'
+                                        f'针对测试数据评分({split*100}%)结果为:{socore[1]}')
 
 
 def set_Learner():
 def set_Learner():
     global ML_OUT
     global ML_OUT
@@ -753,17 +823,39 @@ def set_Learner():
 def get_Learner(Type=False):
 def get_Learner(Type=False):
     global Learn_Dic,ML_BOX,ML_OUT
     global Learn_Dic,ML_BOX,ML_OUT
     if Type:
     if Type:
-        print('FF')
         try:
         try:
             return list(Learn_Dic.keys())[ML_BOX.curselection()[0]]
             return list(Learn_Dic.keys())[ML_BOX.curselection()[0]]
         except:
         except:
-            raise
-            # try:
-            #     return list(Learn_Dic.keys)[0]
-            # except:
-            #     return None
+            # raise
+            try:
+                return list(Learn_Dic.keys)[0]
+            except:
+                return None
     else:
     else:
-        return ML_OUT.get()
+        try:
+            return ML_OUT.get()
+        except:
+            return None
+
+
+def Add_Knn_Class():
+    Add_leaner('Knn_class')
+
+
+def Add_LogisticRegression():
+    Add_leaner('LogisticRegression')
+
+
+def Add_Lasso():
+    Add_leaner('Lasso')
+
+
+def Add_Knn():
+    Add_leaner('Knn')
+
+
+def Add_Ridge():
+    Add_leaner('Ridge')
 
 
 
 
 def Add_Line():
 def Add_Line():
@@ -771,7 +863,7 @@ def Add_Line():
 
 
 
 
 def Add_leaner(Type):#添加Lenear的核心
 def Add_leaner(Type):#添加Lenear的核心
-    ML.Add_Learner(Type)
+    ML.Add_Learner(Type,Text=get_Args_Learner())
     Update_Leaner()
     Update_Leaner()
 
 
 
 
@@ -870,11 +962,11 @@ def DTYPE():
     if column_list == ['']: column_list = []
     if column_list == ['']: column_list = []
     dtype = Dtype_Input.get()
     dtype = Dtype_Input.get()
     wrong = Dtype_Wrong.get()
     wrong = Dtype_Wrong.get()
-    if wrong != 'ignore': wrong = 'coerce'
     if type_:  # 软转换
     if type_:  # 软转换
+        if wrong != 'ignore': wrong = 'coerce'
         ML.Reasonable_Type(name, column_list, dtype, wrong)
         ML.Reasonable_Type(name, column_list, dtype, wrong)
     else:
     else:
-        ML.as_Type(name, column_list, dtype, wrong)
+        ML.as_Type(name, column_list, dtype, 'ignore')
     Updat_BOX()
     Updat_BOX()
 
 
 
 
@@ -1175,7 +1267,7 @@ def Done_Clean():
     global ML
     global ML
     name = get_Name()
     name = get_Name()
     Data = ML.Done_CleanFunc(name)
     Data = ML.Done_CleanFunc(name)
-    title = f'CoTan机器学习 表格:{name}.数据清洗'
+    title = f'CoTan数据处理 表格:{name}.数据清洗'
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
 
 
@@ -1206,7 +1298,7 @@ def Done_NaN():
     global Drop_Column
     global Drop_Column
     name = get_Name()
     name = get_Name()
     Data = ML.Dropna(name, True)
     Data = ML.Dropna(name, True)
-    title = f'CoTan机器学习 表格:{name}.NaN'
+    title = f'CoTan数据处理 表格:{name}.NaN'
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
 
 
@@ -1215,7 +1307,7 @@ def is_Na():
     global Bool_E
     global Bool_E
     name = get_Name()
     name = get_Name()
     Data = ML.is_Na(name)
     Data = ML.is_Na(name)
-    title = f'CoTan机器学习 表格:{name}.NaN'
+    title = f'CoTan数据处理 表格:{name}.NaN'
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
 
 
@@ -1226,7 +1318,7 @@ def Make_BoolSheet():
     name = get_Name()
     name = get_Name()
     Data = ML.Done_Bool(name, Bool_Exp, True)
     Data = ML.Done_Bool(name, Bool_Exp, True)
     print(Data)
     print(Data)
-    title = f'CoTan机器学习 表格:{name} 布尔化'
+    title = f'CoTan数据处理 表格:{name} 布尔化'
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
 
 
@@ -1242,7 +1334,7 @@ def Del_Data():
         Data = ML.Delete(name, Column, Row, new)
         Data = ML.Delete(name, Column, Row, new)
     except:
     except:
         Data = 'None 你的操作不被允许'
         Data = 'None 你的操作不被允许'
-    title = f'CoTan机器学习 表格:{name}'
+    title = f'CoTan数据处理 表格:{name}'
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
 
 
@@ -1301,17 +1393,28 @@ def Slice_Data():
         Data = ML.get_Clice(name, Column, Row, U, new)
         Data = ML.get_Clice(name, Column, Row, U, new)
     except:
     except:
         Data = 'None 你的操作不被允许'
         Data = 'None 你的操作不被允许'
-    title = f'CoTan机器学习 表格:{name}'
+    title = f'CoTan数据处理 表格:{name}'
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
 
 
 
 
+def Sample_Data():
+    global ML,Ascending_New
+    name = get_Name()
+    new = bool(Ascending_New.get())
+    Data = ML.Sample(name, new)
+    title = f'CoTan数据处理 打乱表格:{name}'
+    Creat_TextSheet(Data, title)
+    Updat_BOX()
+
+
+
 def Stored_Value():
 def Stored_Value():
-    global ML, Stored_List
+    global ML, Stored_List,Ascending_New
     name = get_Name()
     name = get_Name()
     new = bool(Ascending_New.get())
     new = bool(Ascending_New.get())
     Data = ML.Stored_Valuse(name, Stored_List, new)
     Data = ML.Stored_Valuse(name, Stored_List, new)
-    title = f'CoTan机器学习 表格:{name}.Stored'
+    title = f'CoTan数据处理 表格:{name}.Stored'
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
 
 
@@ -1355,7 +1458,7 @@ def Stored_Column():  # 行
     a = not bool(Ascending_Type.get())
     a = not bool(Ascending_Type.get())
     new = bool(Ascending_New.get())
     new = bool(Ascending_New.get())
     Data = ML.Sorted(name, False, new, a)
     Data = ML.Sorted(name, False, new, a)
-    title = f'CoTan机器学习 表格:{name}.Stored by Column'
+    title = f'CoTan数据处理 表格:{name}.Stored by Column'
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
 
 
@@ -1366,7 +1469,7 @@ def Stored_Row():  # 行
     new = bool(Ascending_New.get())
     new = bool(Ascending_New.get())
     a = not bool(Ascending_Type.get())
     a = not bool(Ascending_Type.get())
     Data = ML.Sorted(name, True, new, a)
     Data = ML.Sorted(name, True, new, a)
-    title = f'CoTan机器学习 表格:{name}.Stored by Row'
+    title = f'CoTan数据处理 表格:{name}.Stored by Row'
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
 
 
@@ -1376,7 +1479,7 @@ def T():
     name = get_Name()
     name = get_Name()
     new = bool(Ascending_New.get())
     new = bool(Ascending_New.get())
     Data = ML.T(name, new)
     Data = ML.T(name, new)
-    title = f'CoTan机器学习 表格:{name}.T'
+    title = f'CoTan数据处理 表格:{name}.T'
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
 
 
@@ -1398,7 +1501,7 @@ def Show_describe():
     global ML, Des_Bool
     global ML, Des_Bool
     Des = bool(Des_Bool.get())
     Des = bool(Des_Bool.get())
     name = get_Name()
     name = get_Name()
-    title = f'CoTan机器学习 表格:{name}_describe'
+    title = f'CoTan数据处理 表格:{name}_describe'
     Data = str(ML.Describe(name, Des))
     Data = str(ML.Describe(name, Des))
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
     Updat_BOX()
     Updat_BOX()
@@ -1407,7 +1510,7 @@ def Show_describe():
 def Write_Sheet():
 def Write_Sheet():
     global ML, top
     global ML, top
     name = get_Name()
     name = get_Name()
-    title = f'CoTan机器学习 表格:{name}'
+    title = f'CoTan数据处理 表格:{name}'
     Data = str(ML.get_Sheet(name))
     Data = str(ML.get_Sheet(name))
     Creat_TextSheet(Data, title)
     Creat_TextSheet(Data, title)
 
 
@@ -1442,6 +1545,18 @@ def Updat_IndexBOX(get_Index):
     Index_BOX.insert(tkinter.END, *get_Index)
     Index_BOX.insert(tkinter.END, *get_Index)
 
 
 
 
+def Show_One():
+    global PATH, to_HTML_Type
+    Dic = f'{PATH}/$Show_Sheet.html'
+    try:
+        name = get_Name()
+        if name == None: raise Exception
+        ML.to_Html_One(name, Dic)
+        webbrowser.open(Dic)
+    except:
+        # pass
+        raise
+
 def Show():
 def Show():
     global PATH, to_HTML_Type
     global PATH, to_HTML_Type
     Dic = f'{PATH}/$Show_Sheet.html'
     Dic = f'{PATH}/$Show_Sheet.html'
@@ -1451,44 +1566,46 @@ def Show():
         ML.to_Html(name, Dic, to_HTML_Type.get())
         ML.to_Html(name, Dic, to_HTML_Type.get())
         webbrowser.open(Dic)
         webbrowser.open(Dic)
     except:
     except:
-        raise
+        pass
 
 
 
 
-def Add_CSV():
+def to_CSV():
     global top, Seq_Input, Code_Input, str_must, Index_must
     global top, Seq_Input, Code_Input, str_must, Index_must
+    Dic = asksaveasfilename(title='选择保存的CSV', filetypes=[("CSV", ".csv")])
+    Seq = Seq_Input.get()
+    name = get_Name()
+    ML.to_CSV(name,Dic,Seq)
+    Updat_BOX()
+
+
+def Add_CSV():
+    global top, Seq_Input, Code_Input, str_must, Index_must,name_Input
     Dic = askopenfilename(title='选择载入的CSV', filetypes=[("CSV", ".csv")])
     Dic = askopenfilename(title='选择载入的CSV', filetypes=[("CSV", ".csv")])
+    if Dic == '':return False
     Seq = Seq_Input.get()
     Seq = Seq_Input.get()
     Codeing = Code_Input.get()
     Codeing = Code_Input.get()
     str_ = bool(str_must.get())
     str_ = bool(str_must.get())
     Index = bool(Index_must.get())
     Index = bool(Index_must.get())
+    name = name_Input.get().replace(' ','')
+    if name == '':
+        name = os.path.splitext(os.path.split(Dic)[1])[0]
+        print(name)
     if Codeing == '':
     if Codeing == '':
         with open(Dic, 'rb') as f:
         with open(Dic, 'rb') as f:
             Codeing = chardet.detect(f.read())['encoding']
             Codeing = chardet.detect(f.read())['encoding']
-            print(Codeing)
     if Seq == '': Seq = ','
     if Seq == '': Seq = ','
-    ML.Add_CSV(Dic, '', Seq, Codeing, str_, Index)
+    ML.Add_CSV(Dic, name, Seq, Codeing, str_, Index)
     Updat_BOX()
     Updat_BOX()
 
 
 
 
 def Add_Python():
 def Add_Python():
     global top, Seq_Input, Code_Input, str_must, Index_must
     global top, Seq_Input, Code_Input, str_must, Index_must
     Dic = askopenfilename(title='选择载入的py', filetypes=[("Python", ".py"), ("Txt", ".txt")])
     Dic = askopenfilename(title='选择载入的py', filetypes=[("Python", ".py"), ("Txt", ".txt")])
+    name = name_Input.get().replace(' ','')
+    if name == '':
+        name = os.path.splitext(os.path.split(Dic)[1])[0]
     with open(Dic, 'r') as f:
     with open(Dic, 'r') as f:
-        ML.Add_Python(f.read(), '')
-    Updat_BOX()
-
-
-def Add_Html():
-    global top, Seq_Input, Code_Input, str_must, Index_must
-    Dic = askopenfilename(title='选择载入的Html', filetypes=[("CSV", ".csv")])
-    Codeing = Code_Input.get()
-    str_ = bool(str_must.get())
-    Index = bool(Index_must.get())
-    if Codeing == '':
-        with open(Dic, 'rb') as f:
-            Codeing = chardet.detect(f.read())['encoding']
-            print(Codeing)
-    ML.Add_Html(Dic, '', Codeing, str_, Index)
+        ML.Add_Python(f.read(), name)
     Updat_BOX()
     Updat_BOX()
 
 
 
 
@@ -1508,7 +1625,3 @@ def Updat_BOX():
     Form_List = ML.get_FormList()
     Form_List = ML.get_FormList()
     Form_BOX.delete(0, tkinter.END)
     Form_BOX.delete(0, tkinter.END)
     Form_BOX.insert(tkinter.END, *Form_List)
     Form_BOX.insert(tkinter.END, *Form_List)
-
-
-if __name__ == '__main__':
-    Machine_learning()

+ 2 - 0
Data_Science/__init__.py

@@ -0,0 +1,2 @@
+from .Me_learn import Machine_learning
+print('SJKX加载完成...')

+ 37 - 41
Hello.py

@@ -1,53 +1,57 @@
-print('启动')
-from time import time
-print('开始加载')
-start = time()
-import tkinter
-print(f'图形加载完毕...')
-import tkinter.font as tkFont
-print(f'字体加载完毕...')
-from PIL import ImageTk, Image
-print(f'图片加载完毕...')
-import CGB,HSCH,DSGC
-from New_TK import DragWindow
 from multiprocessing import Process
 from multiprocessing import Process
-print(f'加载完毕...{round(time() - start,3)}s')
+
+def painting_board():
+    from CGB import Draw
+    Draw()
 
 
 def Draw():
 def Draw():
     global top,HTB
     global top,HTB
-    HTB = Process(target=CGB.Draw)
+    HTB = Process(target=painting_board)
     HTB.start()
     HTB.start()
-    # top.destroy()
-    # CGB.Draw()
-    # Main()
+
+def Data_Science():
+    from Data_Science import Machine_learning
+    Machine_learning()
+
+def SJKX():
+    global top,SJ
+    SJ = Process(target=Data_Science)
+    SJ.start()
+
+def Function_mapping():
+    from HSCH import Func_Control
+    Func_Control()
 
 
 def Hsch():
 def Hsch():
     global top,CH
     global top,CH
-    CH = Process(target=HSCH.Func_Control)
+    CH = Process(target=Function_mapping)
     CH.start()
     CH.start()
-    # top.destroy()
-    # HSCH.Func_Control()
-    # Main()
+
+def Function_factory():
+    from HSCH import Advanced_Control
+    Advanced_Control()
 
 
 def HSGC():
 def HSGC():
     global top,HsGC
     global top,HsGC
-    HsGC = Process(target=HSCH.Advanced_Control)
+    HsGC = Process(target=Function_factory)
     HsGC.start()
     HsGC.start()
-    # top.destroy()
-    # HSCH.Advanced_Control()
-    # Main()
+
+def Algebraic_factory():
+    from DSGC import Alg
+    Alg()
 
 
 def Dsgc():
 def Dsgc():
     global top,DsGC
     global top,DsGC
-    DsGC = Process(target=DSGC.Alg)
+    DsGC = Process(target=Algebraic_factory)
     DsGC.start()
     DsGC.start()
-    # top.destroy()
-    # DSGC.Alg()
-    # Main()
 
 
 def Main():
 def Main():
     global top
     global top
-    # top = tkinter.Tk()  # 设置屏幕
+    import tkinter
+    import tkinter.font as tkFont
+    from PIL import ImageTk, Image
+    from New_TK import DragWindow
+    print('加载完毕')
     top = DragWindow(alpha=0.97,width=1200,height=800)
     top = DragWindow(alpha=0.97,width=1200,height=800)
     ft = tkFont.Font(family='Comic Sans MS', size=20, weight=tkFont.BOLD)
     ft = tkFont.Font(family='Comic Sans MS', size=20, weight=tkFont.BOLD)
     ft1 = tkFont.Font(family='Comic Sans MS', size=16, weight=tkFont.BOLD)
     ft1 = tkFont.Font(family='Comic Sans MS', size=16, weight=tkFont.BOLD)
@@ -82,8 +86,8 @@ def Main():
     tkinter.Button(F1,text='函数测绘',cursor=bc,command=Hsch,height=2,font=ft2,bg=bg,activebackground=abg,bd=0,justify=tkinter.LEFT).grid(column =0,row = 7,sticky=tkinter.N + tkinter.E + tkinter.W)
     tkinter.Button(F1,text='函数测绘',cursor=bc,command=Hsch,height=2,font=ft2,bg=bg,activebackground=abg,bd=0,justify=tkinter.LEFT).grid(column =0,row = 7,sticky=tkinter.N + tkinter.E + tkinter.W)
     tkinter.Button(F1, text='函数工厂',cursor=bc,command=HSGC, height=2, font=ft2, bg=bg,activebackground=abg, bd=0, justify=tkinter.LEFT).grid(column=0, row=8,sticky=tkinter.N + tkinter.E + tkinter.W)
     tkinter.Button(F1, text='函数工厂',cursor=bc,command=HSGC, height=2, font=ft2, bg=bg,activebackground=abg, bd=0, justify=tkinter.LEFT).grid(column=0, row=8,sticky=tkinter.N + tkinter.E + tkinter.W)
     tkinter.Button(F1, text='代数工厂',cursor=bc,command=Dsgc, height=2, font=ft2, bg=bg,activebackground=abg, bd=0, justify=tkinter.LEFT).grid(column=0, row=9,sticky=tkinter.N + tkinter.E + tkinter.W)
     tkinter.Button(F1, text='代数工厂',cursor=bc,command=Dsgc, height=2, font=ft2, bg=bg,activebackground=abg, bd=0, justify=tkinter.LEFT).grid(column=0, row=9,sticky=tkinter.N + tkinter.E + tkinter.W)
-    tkinter.Button(F1, text='机器学习',cursor=bc, height=1, font=ft2, bg=bg,activebackground=abg, bd=0, justify=tkinter.LEFT).grid(column=0, row=10,sticky=tkinter.N + tkinter.E + tkinter.W)
-    tkinter.Button(F1, text='几何分析',cursor=bc, height=1, font=ft2, bg=bg,activebackground=abg, bd=0, justify=tkinter.LEFT).grid(column=0, row=11,sticky=tkinter.N + tkinter.E + tkinter.W)
+    tkinter.Button(F1, text='数据科学',cursor=bc,command=SJKX, height=1, font=ft2, bg=bg,activebackground=abg, bd=0, justify=tkinter.LEFT).grid(column=0, row=10,sticky=tkinter.N + tkinter.E + tkinter.W)
+    tkinter.Button(F1, text='机器学习',cursor=bc, height=1, font=ft2, bg=bg,activebackground=abg, bd=0, justify=tkinter.LEFT).grid(column=0, row=11,sticky=tkinter.N + tkinter.E + tkinter.W)
 
 
     abg='#F5FFFA'
     abg='#F5FFFA'
     tkinter.Label(F1, text='物化系统', bg=abg, font=ft1).grid(column=0, row=12, sticky=tkinter.W + tkinter.E)
     tkinter.Label(F1, text='物化系统', bg=abg, font=ft1).grid(column=0, row=12, sticky=tkinter.W + tkinter.E)
@@ -108,12 +112,4 @@ def Main():
     top.mainloop()
     top.mainloop()
 
 
 if __name__ == "__main__":
 if __name__ == "__main__":
-    HTB = Process(target=CGB.Draw)
-    CH = Process(target=HSCH.Func_Control)
-    HsGC = Process(target=HSCH.Advanced_Control)
-    DsGC = Process(target=DSGC.Alg)
-    Main()
-    # HTB.join()
-    # CH.join()
-    # HsGC.join()
-    # DsGC.join()
+    Main()

+ 0 - 35
Test2.py

@@ -1,35 +0,0 @@
-import json
-import os
-
-from pyecharts import options as opts
-from pyecharts.charts import Page, TreeMap
-
-
-def treemap_base() -> TreeMap:
-    data = [
-        {"value": 40, "name": "我是A"},
-        {
-            "name": "我是B",
-            "children": [
-                {
-                    "value": 76,
-                    "name": "我是B.children",
-                    "children": [
-                        {"value": 12, "name": "我是B.children.a"},
-                        {"value": 28, "name": "我是B.children.b"},
-                        {"value": 20, "name": "我是B.children.c"},
-                        {"value": 16, "name": "我是B.children.d"},
-                    ],
-                }
-            ],
-        },
-    ]
-    print(data)
-    c = (
-        TreeMap()
-        .add("演示数据", data,label_opts=opts.LabelOpts(is_show=True,position='inside'))
-        .set_global_opts(title_opts=opts.TitleOpts(title="TreeMap-基本示例"))
-    )
-    return c
-
-treemap_base().render()

Some files were not shown because too many files changed in this diff