일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- #명언
- python __init__
- #영어
- object detection
- #English
- #opencv
- Convolution Neural Network
- 영어명언
- #1일1영어
- TensorFlow
- word embedding
- 딥러닝
- tokenizing
- #실생활영어
- #Android
- python list
- #JAVA
- keras
- #영어 명언
- convexhull
- opencv SURF
- #일상영어
- #실생활 영어
- #unity
- #api
- findContours
- tensorflow update
- 영어
- #프로젝트
- c언어
Archives
- Today
- Total
목록python text 오류 (1)
When will you grow up?
Python 에서 text 과정중 UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 564
python으로 text 읽어오는 과정중,위 사진과 같은 오류가 뜰 경우가 있는데, 12345#수정전open(os.path.join(dirpath, file), "r") as f: #open(os.path.join(dirpath, file), "r", encoding='UTF8') as f:cs 으로 바꿔주시면 됩니다.코덱으로 인코딩 된 파일을 읽어들일때 Decode과정에서 Error를 뿜어낸다고 하네요.
02. Study/Python
2017. 5. 4. 16:14