0
我想通過與子進程(python 2.7(qpython android))的套接字發送命令。 這裏的代碼:qpython上的子進程錯誤(OSerror)
#reponse is my command
x = subprocess.Popen(reponse,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stdin=subprocess.PIPE)
y = str(x.stdout.read() + x.stderr.read())
但是,當我想要的,我得到這個錯誤:
Traceback (most recent call last):
File "ser.py", line 72, in <module>
stdin=subprocess.PIPE)
File "/QPython/QPython2-core/build/python-install/lib/python2.7/subprocess.py",
line 679, in __init__
File "/QPython/QPython2-core/build/python-install/lib/python2.7/subprocess.py",
line 1228, in _execute_child
OSError: [Errno 2] No such file or directory
因此,有人可以告訴我,什麼是錯的,以及如何定價套餐這一點。 。Thx提前尋求幫助...