0

大家好,我可以通过 symfony 进程代码传递 laravel 参数我用它来运行 python 脚本

use Symfony\Component\Process\Process; 
use Symfony\Component\Process\Exception\ProcessFailedException; 
 
$process = new Process(['python3','/path/to/your_script.py',$policyname); 
$process->run();
4

0 回答 0