configparser
configparser
python 3 에서는 configparser
python 2 에서는 ConfigParser
config 파일에서 설정값을 가져 올 때 사용하는 모듈이다.
config.ini
config_test.py
DEFAULT 주의
DEFAULT 가 아닌 곳의 list 데이터 조회 해서 가져왔는데 for loop 돌면서 찍어 보면 DEFAULT 정보도 같이 나옴.
정리
References
Last updated
Was this helpful?