我在同一目录中有两个文件:
index.php
excel.py
我试图像这样调用excel.py
文件index.php
:
$buff = system('python excel.py ' . $handle->file_dst_pathname, $retval);
我使用Windows 10
这样尝试
exec("C:\Python27\python.exe C:\dir...\file.py");
问题是您必须C:\Python27\python.exe
在python文件之前调用python exe文件。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句