最近需要做一个excel导入的工具,
excel表格是python的强项,于是想delphi结合python实现

delphi环境xe2
python 3.6.6
  
上图可以看到,真的很爽,我在vscode写python脚本,然后给delphi调用
读取了一个excel文件,打印出了列头。
最爽的是,我在没wps,office环境的机器上,也可以正常读取excel,
就是因为这,我决定继续搞下去
unit Unit1;
{$I Definition.Inc}
interface
uses
  Classes, SysUtils,
  Windows, Messages, Graphics, Controls, Forms, Dialogs,
  StdCtrls, ComCtrls, ExtCtrls,
  PythonEngine, PythonGUIInputOutput, Vcl.Buttons;
type
  TForm1 = class(TForm)
    PythonEngine1: TPythonEngine;
    Memo1: TMemo;
    Panel1: TPanel;
    Button1: TButton;
    Splitter1: TSplitter;
    Button2: TButton;
    Button3: TButton;
    OpenDialog1: TOpenDialog;
    SaveDialog1: TSaveDialog;
  





![buu [AFCTF2018]花开藏宝地 1](https://img-blog.csdnimg.cn/6df4749ea0554a52842c3f4befa6c0e9.png)












