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
- 채보
- error
- C#
- 핑거스타일
- 명령어
- mysql
- VS Code
- 기타
- C++
- Linux
- Selenium
- ubuntu
- 기타 연주
- label
- Docker
- 프로그래머스
- paramiko
- Numpy
- LIST
- C
- OpenCV
- 오류
- Python
- Visual Studio
- SSH
- windows forms
- pandas
- YOLO
- pytorch
- JSON
Archives
- Today
- Total
기계는 거짓말하지 않는다
Python configparser key 대소문자 구분 본문
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