Output USER in your system : System Variables « System « Python






Output USER in your system

import os
print 'echoenv...', 
print 'Hello,', os.environ['USER']


           
       








Related examples in the same category

1.List system variable keys and set a system parameter key
2.Output system parameter: PYTHONPATH path by path