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.
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.
本文标题:python os.environ()和os.getenv()方
本文链接:https://www.haomeiwen.com/subject/yphwfxtx.html
网友评论