所以我在使用 subprocess.call() 时遇到了问题,我想我可能只是说错了。我在用:
subprocess.call('testingosfile.py')
我得到了回溯:
Traceback (most recent call last):
File "<pyshell#14>", line 1, in <module>
subprocess.call('testingosfile.py')
File "C:\Python27\lib\subprocess.py", line 493, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 679, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 893, in _execute_child
startupinfo)
WindowsError: [Error 193] %1 is not a valid Win32 application
内容testingosfile.py
是:
print "hello world!"
raw_input('....')
我如何设法让它运行?
预先感谢您的回复。