当前位置:主页 > 软件编程 > Python代码 >
时间:2021-06-25 09:27:15 | 栏目:Python代码 | 点击:次
如下所示:
result = os.popen('ps aux') res = result.read() for line in res.splitlines(): print line