两种方法之间有什么不同吗?>>> os.getenv('TERM') 'xterm' >>> os.environ.get('TERM') 'xterm' >>> os.getenv('FOOBAR', "not found") == "not found" True ...
確定! 回上一頁