How to get and set environment variables in Python? import os. # get HOME directory. os.environ.get('HOME') # returns None if variable does not exist.
確定! 回上一頁