首页 > 代码库 > Python知识点: os.popen

Python知识点: os.popen

用例: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.