How do I see Python environment variables?

How do I see Python environment variables?
Answer
To set and get environment variables in Python you can just use the os module:
import os # Set environment variables os.
environ[‘API_USER’] = ‘username’ os
. environ[‘API_PASSWORD’] = ‘secret’ # Get environment variables USER = os.
 

Tìm kiếm

Back
Top