import subprocess p = subprocess.Popen('df -lh', stdout=subprocess.PIPE, shell=True) print(p.stdout.read()) 相关文章: 2021-09-26 2022-12-23 2021-05-30 2021-10-30 2022-12-23 2022-12-23 2022-12-23