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

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