Is there any difference at all between both approaches? >>> os.getenv('TERM') 'xterm' >>> os.environ.get('TERM') 'xterm' >>> os.getenv('FOOBAR', "not found") == "not found" True ...
-
May 19, 2022
- 0 Comments