Get using the os module
os
import os env_dict = os.environ <-os module variable environ holds environment variables
--Official documentation: https://docs.python.org/ja/3/library/os.html#os.environ
Recommended Posts