在目录中执行可执行文件的python子进程

9cbw7uwe  于 2021-08-25  发布在  Java
关注(0)|答案(0)|浏览(210)

我想运行一个可执行文件。
我的密码是这个。

power_mon = r".\System.exe"
    command = [power_mon]
    command.extend(argument_list)
    output = subprocess.Popen( command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, shell=True)

我的输出是这个。
popen:returncode:none参数:['.\system.exe','/5x6','/stand…
我不明白是什么导致了额外的反斜杠?
如何启动终端窗口,以便查看这些命令的执行情况?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题