Answers for "environment varible python"

9

python create environment variable

import os
os.environ['variable_name'] = 'variable_value'
Posted by: Guest on April-28-2020
0

env variables python .env

import os

print(os.environ.get('TYPE'))
print(os.environ.get('PORT'))
Posted by: Guest on June-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language