python中output尺寸过小怎么办_python - 2.6中的python check_output解决方法 - 堆栈内存溢出...
我已经通过将cwd参数传递到注释中建议的check_output来解决。def get_git_info():git_info = {}try:import subprocess# subprocess.check_output did not exist in 2.6if "check_output" not in dir(subprocess): # duck punch it in!# wo...