python os.environ()和os.getenv()方区别

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.

    原文作者:faraway_com
    原文地址: https://www.jianshu.com/p/89f222f9f0b6
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞