# -*- coding:utf-8 -*-
 
from subprocess import *
 
p = Popen('df -Th',
          stdout=PIPE,
          stderr=PIPE,
          shell=True
          )
p.wait()
out = p.stdout.read()
 
print out

 

p = subprocess.Popen('ffprobe.exe -show_format ./flv/bbb3.flv',
                         stdout=subprocess.PIPE,
                         stderr=subprocess.PIPE,
                         shell=True
                         )
p.wait()
out = p.stdout.read()
print(out.decode("utf-8"))

 

相关文章:

  • 2021-11-13
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2021-09-26
  • 2021-05-30
猜你喜欢
  • 2021-06-26
  • 2022-02-11
  • 2021-07-13
  • 2021-09-19
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案