python 执行Linux命令的几种方法 原创 · 1. os.system(cmd) · 返回值是shell · 2. os.popen() · 该方法以文件的形式返回shell · 3. commands模块 · 4. subprocess ...
確定! 回上一頁