に私は私のpython 3.2.2書式設定文字列()のpython 3.xの
working_file = subprocess.Popen(["/pyRoot/iAmAProgram"], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
working_file.stdin.write('message')
で、このコードを実行しようとすると、私はエラーを取得し、私はそれのpython 3を理解し、問題を抱えていますそれは文字列を扱う方法を変更しましたが、私は 'メッセージ'のフォーマット方法を理解していません。誰も私はこのコードを有効にする方法を知っていますか?
多くのおかげ
JON
更新:HERESに私は
Traceback (most recent call last):
File "/pyRoot/goRender.py", line 18, in <module>
working_file.stdin.write('3')
TypeError: 'str' does not support the buffer interface
あなたエラーメッセージを忘れました。 –