我有一個程序,它可以在Linux上完美運行,但是 - 這是一個奇蹟 - 而不是Windows。 我已經修復的bug一個用SYS,並獲得一個新問題:Python + Windows:子進程和bufsize
"TypeError: bufsize must be an integer"
我敢肯定這是一件很容易的,我忘了試戴任何提示?謝謝!
import subprocess
import sys
process = subprocess.Popen(sys.executable, [player["progname"]],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
universal_newlines=True)
可能的複製[刷新消息時,bufsize必須是整數錯誤](https://stackoverflow.com/questions/17824096/bufsize-must-be-an-integer-error-while-grepping-a-message) –