且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Python脚本中运行命令行

更新时间:2023-01-15 22:32:06

你应该使用 subprocess 模块。特别是, subprocess.call 将为您运行命令行程序。

You should use the subprocess module. In particular, subprocess.call will run command line programs for you.