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

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.
posted @ 2019-04-15 15:39  我不是杰克船长  阅读(3935)  评论(0编辑  收藏  举报