반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 파이썬
- PySpark
- PostgreSQL
- PANDAS
- Google Excel
- django
- GIT
- matplotlib
- Apache
- c#
- google apps script
- hive
- Python
- Github
- Google Spreadsheet
- Mac
- numpy
- string
- dataframe
- Redshift
- Excel
- math
- list
- array
- SQL
- Kotlin
- Tkinter
- gas
- Java
Archives
- Today
- Total
목록Python 환경변수 (1)
달나라 노트
Python os : os.environ.get (environment_variable_name)
컴퓨터에 저장된 환경변수를 python에서 불러오려면 os library를 사용하면 됩니다. 현재 제 컴퓨터에는 test_environ 이라는 이름의 환경변수에 'Cloud'라는 텍스트를 저장해놨다고합시다. import os val_env = os.environ.get('test_environ') print(val_env) -- Result Cloud 만약 test_environ이라는 이름의 환경변수에 저장된 Cloud라는 내용을 불러오려면 위처럼 os.environ.get('환경변수이름')을 사용하면 됩니다.
Python/Python os
2021. 5. 11. 13:34