用例:f = os.popen("%s %s %s" % ("pkg-config", " ".join(args), mod))
popen(...)
popen(command [, mode=‘r‘ [, bufsize]]) -> pipe
Open a pipe to/from a command returning a file object.
Python知识点: os.popen,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/Clisa/p/3851110.html