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 |
Tags
- 채보
- windows forms
- ubuntu
- 핑거스타일
- VS Code
- C
- nvidia-smi
- pandas
- YOLO
- Visual Studio
- 오류
- label
- paramiko
- C++
- SSH
- JSON
- 컨테이너
- error
- C#
- pip
- pytorch
- Numpy
- Python
- OpenCV
- 프로그래머스
- Selenium
- 기타 연주
- Docker
- Linux
- mysql
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