求助,php调用python脚本传递参数的问题

2025-04-18 06:36:23
推荐回答(2个)
回答1:

不成功的
python textcasting_stream_py/start_capture_stream.py rtmp://v2.gdtv.cn:1935/live/sport baw GermenVSJapan
成功的
python textcasting_stream_py/start_capture_stream.py rtmp://v2.gdtv.cn:1935/live/sport Kobe GermenVSJapan

回答2:

和sql语句一样,将.号改为{}号,如下:
$command="python textcasting_stream_py/start_capture_stream.py {$feed} {$caster_id} {$gameName}";