Running command lines within your Python script

前端 未结 4 794
予麋鹿
予麋鹿 2021-02-05 08:02

So I have a bunch of aliases and Command Line prompt programs, and my main program works by inputting b into the cmd.exe, followed by some filepath names and what not. How would

4条回答
  •  情深已故
    2021-02-05 08:38

    Check out Sarge - a wrapper for subprocess which aims to make life easier for anyone who needs to interact with external applications from their Python code. and Plumbum - a small yet feature-rich library for shell script-like programs in Python.

提交回复
热议问题