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#
- Linux
- SSH
- C++
- Python
- pandas
- paramiko
- 프로그래머스
- windows forms
- C
- ubuntu
- Numpy
- LIST
- 기타 연주
- Visual Studio
- pytorch
- 핑거스타일
- 기타
- YOLO
- OpenCV
- VS Code
- label
- mysql
- Selenium
- JSON
- Docker
- 명령어
- error
- 오류
Archives
- Today
- Total
목록ElementTree (1)
기계는 거짓말하지 않는다
Python XML ElementTree Read
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