无奈黑猫

文章
2
资源
0
加入时间
4年0月9天

python设置shell脚本所需要的环境变量PATH.

python能不能像linux终端里一样可以设置PATH这样的环境变量?python脚本os.putenv("fruit","apple")print "getenv fruit is ", os.getenv("fruit")会得到Noneos.environ["fruit"] = "apple"print "getenv fruit is ", os.g