每当我使用下面的方法从Python调用ac代码可执行文件时,我得到一个"错误的文件描述符"错误.当我从命令提示符运行代码时它工作正常.请帮忙!?
import subprocess
p = subprocess.call(['C:\Working\Python\celp.exe', '-o', 'ofile'], stdin=subprocess.PIPE, stderr=subprocess.STDOUT)
In [84]: %run "C:\Working\Python\test.py"
Error: : Bad file descriptor
Run Code Online (Sandbox Code Playgroud)