php代码:
<?php
exec("C:/Python27/python qwer.py 2>&1", $output);
print_r($output);
?>
Python代码:
f = open('myfile.txt','w')
f.write('hi there\n')
错误:
Array ( [0] => C:/Python27/python: can't open file 'qwer.py': [Errno 2] No such file or directory )
Tags:
给出完整的路径qwer.py公司就像下面一样
相关问题 更多 >
编程相关推荐