📜  python 获取输出 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:04.454000             🧑  作者: Mango

代码示例1
>out = subprocess.Popen(['wc', '-l', 'my_text_file.txt'], 
           stdout=subprocess.PIPE, 
           stderr=subprocess.STDOUT)