python subprocess库
时间: 2023-09-01 20:10:23 浏览: 173
Python的subprocess库是用于调用Linux shell命令并返回状态和结果的库。它取代了Python2.4以上版本的commands模块,可以在Python中创建并运行一个外部程序的子进程。subprocess库中定义了多个创建子进程的函数,可以根据需要选择适合的函数来创建子进程。此外,subprocess还提供了管理标准流和管道的工具,以实现进程间的文本通信。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Python subprocess库六个实例详解](https://blog.csdn.net/yaxuan88521/article/details/127898313)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Python subprocess库的使用详解](https://download.csdn.net/download/weixin_38727199/13778453)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Python subprocess模块学习总结](https://blog.csdn.net/weixin_34414196/article/details/91916639)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文