子进程完成运行后如何获取其环境变量?

How to get the environment variables of a subprocess after it finishes running?(子进程完成运行后如何获取其环境变量?)

本文介绍了子进程完成运行后如何获取其环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来做到这一点,以便我可以将它传递给另一个子进程的环境.

I'm looking for a way to do this, so that I can pass it to the environment of another subprocess.

推荐答案

你能不能在第一个子进程中打印出来,然后在 python 中处理那个字符串?

Can you print them out in the first subprocess and deal with that string in python?

这篇关于子进程完成运行后如何获取其环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:子进程完成运行后如何获取其环境变量?

基础教程推荐