请问在delphi中怎么调用python已经写好的py程序

2025-02-24 03:05:35
推荐回答(2个)
回答1:

在delphi的demos示例中有一个fmxutils单元,该单元中有一个名为executefile()的过程--其实它就是对shellapi单元中的shellexecute过程重新封装--能满足你的要求。

回答2:

WinExec(Pchar('C:\Python27\python aaaa.py'),sw_ShowNormal);