python 的os.getenv("PATH")和os.environ.get("PATH")的区别

时间:2021-04-06 22:47:06
os.environ(x [,x]) raises an exception if the environmental variable does not exist.
os.getenv(x) does not raise an exception ,but returns None.