Python subprocess调用命令及实时获取输出
import shlex, subprocess def runCmd(tid, msg, cmd): try: p = subprocess.Popen(shlex.split(cmd), stdin=subp…
756 2022-08-23
查看更多