使用subprocess库
import subprocess
out_bytes = subprocess.check_output(['netstat','-a']) out_bytes = subprocess.check_output('grep python j wc > out', shell=True)
2023-10-18 18:51:04
使用subprocess库
import subprocess
out_bytes = subprocess.check_output(['netstat','-a']) out_bytes = subprocess.check_output('grep python j wc > out', shell=True)