subprocess模块

在python3中有的,取代2中的commonds模块python

subprocess.getstatusoutput('ipconfig')

返回的是tuple,第一个是code 0成功1失败,第二个是具体信息code

相关文章
相关标签/搜索