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
- C#
- OpenCV
- 채보
- VS Code
- windows forms
- 프로그래머스
- paramiko
- Selenium
- 오류
- C++
- error
- nvidia-smi
- ubuntu
- label
- 핑거스타일
- YOLO
- Python
- pandas
- Visual Studio
- 컨테이너
- JSON
- pip
- Linux
- pytorch
- Docker
- mysql
- C
- SSH
- Numpy
- 기타 연주
Archives
- Today
- Total
기계는 거짓말하지 않는다
Python configparser key 대소문자 구분 본문
14.2. configparser — Configuration file parser — Python 3.6.15 문서
14.2. configparser — Configuration file parser Source code: Lib/configparser.py This module provides the ConfigParser class which implements a basic configuration language which provides a structure similar to what’s found in Microsoft Windows INI file
docs.python.org
configparser의 key에 대문자를 작성해도 config 파일을 만들어 보면 소문자로 바뀌어 있는 경우가 있다.
아래와 같이 optionxform을 작성하면 해결할 수 있다.
config = ConfigParser.RawConfigParser()
config.optionxform = str
'Python' 카테고리의 다른 글
Python RLock 자원 동시 접근 관리 (0) | 2022.07.22 |
---|---|
Python Error argument after * must be an iterable, not Queue (0) | 2022.06.10 |
Python 소수점 제한, 출력 (0) | 2022.05.08 |
Python Directory 이동, 복사, 삭제(하위 폴더, 디렉터리 포함) (0) | 2022.05.01 |
Python Shell 명령어, subprocess (0) | 2022.04.24 |
Comments