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 |
Tags
- SSH
- 채보
- Linux
- Python
- label
- error
- VS Code
- JSON
- paramiko
- C
- pytorch
- C++
- mysql
- YOLO
- LIST
- Selenium
- pip
- ubuntu
- 핑거스타일
- 컨테이너
- pandas
- Visual Studio
- windows forms
- C#
- Numpy
- 기타 연주
- OpenCV
- Docker
- 프로그래머스
- 오류
Archives
- Today
- Total
목록XML (1)
기계는 거짓말하지 않는다
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dRaTrd/btrhTRy7kQT/Ja4GgWjnhAVryrY5tFWjG0/img.png)
XML ElementTree를 이용한 XML 파일 읽기 import os import glob import xml.etree.ElementTree as ET# import module # 모든 XML 파일 경로를 가져옴 ano_path = sorted(glob.glob(os.path.join("./", "*.xml"))) # XML 파일 하나씩 읽음 for annotation_path in ano_path: # XML 파일 읽기 doc = ET.parse(annotation_path) # 최상위 XML 태그 root = doc.getroot() # text 파일 이름 filename = annotation_path.split("\\")[-1].split(".")[0] + ".txt" # text 저장 경..
Python
2021. 10. 15. 21:43