9得票1回答
Python的sh模块 - 后台运行命令包装器

当使用Python的sh模块(不是标准库的一部分)时,我可以将路径中的程序作为函数调用并在后台运行: from sh import sleep # doesn't block p = sleep(3, _bg=True) print("prints immediately!") p.wai...