파이썬 glob 라이브러리 : 파일 및 디렉토리 다루기 2

“파이썬 glob” 라이브러리는 os 라이브러리의 기능과 마찬가지로 파일과 디렉토리를 검색하는 데 사용할 수 있습니다. os 라이브러리와 다른점은 파일 경로 패턴 매칭을 이용하여 지정된 패턴에 맞는 파일이나 디렉토리를 검색하는 데 사용된다는 점입니다. glob은 와일드카드 문자(*)를 사용하여 경로를 패턴화하고, 해당 패턴에 맞는 파일 목록을 반환할 수 있습니다. 파이썬 glob 기본 사용법 pathname 인자에 path를 패턴화 해서 입력하면 … Read more

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny