php文件
$output = shell_exec('python D:\test.py');
Python文件 test.py
from os import startfile #播放本地视频 path = 'D:\Wildlife.wmv'
startfile(path)调用php文件时并没有播放视频,但是我用cmd命令行执行 python test.py 是可以执行的。 另外我在test.py里打印print(12345);然后执行PHP也是有返回12345,这个是什么原因呢
添加回答
举报
0/150
提交
取消