7zip Commands from Python

后端 未结 3 1898
礼貌的吻别
礼貌的吻别 2021-02-07 13:52

There is a post on this topic already, but it does not have an explicit answer to the fundamental question which I am re-asking here:

How do you make 7zip commands from

3条回答
  •  误落风尘
    2021-02-07 14:13

    import subprocess
    cmd = ['7z', 'a', 'Test.7z', 'Test', '-mx9']
    sp = subprocess.Popen(cmd, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
    

提交回复
热议问题