php文件
$output = shell_exec('python D:\test.py');
Python文件 test.py
from os import startfile #播放本地視頻 path = 'D:\Wildlife.wmv'
startfile(path)調用php文件時并沒有播放視頻,但是我用cmd命令行執(zhí)行 python test.py 是可以執(zhí)行的。 另外我在test.py里打印print(12345);然后執(zhí)行PHP也是有返回12345,這個是什么原因呢
添加回答
舉報
0/150
提交
取消