본문 바로가기

이것저것 기록

검색하기
이것저것 기록
프로필사진 anweh

  • 분류 전체보기 (86)
    • Data Science (29)
      • ML & DL (22)
      • New Tech (7)
    • 코린이 (49)
      • 실무를 위한 코딩 기록 (27)
      • 코딩 기초 & 알고리즘 공부 (22)
    • Architecture (8)
    • 생각 기록 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • GNN
  • 도커 레이어
  • docker
  • 지하철역좌표
  • 3d데이터
  • graph
  • 폴더조사
  • 패치분할
  • geopandas
  • MESH
  • 데이터입수
  • 파이썬
  • geojson
  • GIS
  • Set
  • 알고리즘
  • 3d
  • 귀여운고래
  • 도커
  • STL
  • 좌표거리
  • 동명이인찾기
  • Python
  • 이미지빌드
  • 컨테이너
  • pyvista
  • python최단거리
  • osmnx
  • GCN
  • 그리드분할
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록파일경로 (1)

이것저것 기록

[python] 폴더/하위 폴더의 파일 목록 출력

1. 특정 형태의 파일 위치 출력 import os import pandas as pd import csv PATH = r'C:/Users/82107/Desktop/COMPAS_세종시/' file_ls = [] max_depth = 0 for path, dir, files in os.walk(PATH): for file in files: current = os.path.join(path, file).replace('\\', '/') file_ls.append(current) if len(current.split('/')) > max_depth: max_depth = len(current.split('/')) PATH에 mother root을 입력 해당 코드는 pdf 파일의 위치만 추출하는 것인데, 만약에..

코린이/실무를 위한 코딩 기록 2021. 6. 4. 14:54
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바