使用subprocess库
import subprocess out_bytes = subprocess.check_output([‘netstat‘,‘-a‘]) out_bytes = subprocess.check_output(‘grep python j wc > out‘, shell=True)
原文地址:https://www.cnblogs.com/buxizhizhoum/p/9009813.html
时间: 2024-10-06 18:52:23
使用subprocess库
import subprocess out_bytes = subprocess.check_output([‘netstat‘,‘-a‘]) out_bytes = subprocess.check_output(‘grep python j wc > out‘, shell=True)
原文地址:https://www.cnblogs.com/buxizhizhoum/p/9009813.html