python:打开cmd.exe执行命令后出现中文内容缺失/乱码
代码
打开cmd.exe接口: self.__process subprocess.Popen("cmd.exe",stdinsubprocess.PIPE,stdoutsubprocess.PIPE,stderrsubprocess.STDOUT)self.__cmd_pid self.__process.pidlogger.debug(fnew console started)读取内容:
out self._…
2026/7/8 8:28:56