본문 바로가기

흰둥이는 코드를 짤 때 짖어 (왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!)

검색하기
흰둥이는 코드를 짤 때 짖어 (왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!)
프로필사진 흰둥아솜사탕

  • 분류 전체보기 (132)
    • 파이썬 기초 (29)
    • MySQL (14)
    • HTML, CSS, JS (39)
    • Node.js (2)
    • 파이썬 데이터 분석 (13)
    • 파이썬 크롤링 (4)
    • 파이썬 머신러닝, 딥러닝 (17)
    • 과제 (11)
    • 시험 (3)
Guestbook
250x250
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
  • JS
  • shutil
  • Database
  • 오버라이딩
  • __sub__
  • __annotations__
  • MySqlDB
  • CSS
  • 파이썬
  • discard()
  • fnmatch
  • zipfile
  • MySQL
  • __len__
  • HTML
  • decode()
  • fileinput
  • inplace()
  • shuffle()
  • mro()
  • __getitem__
  • remove()
  • locals()
  • count()
  • items()
  • choice()
  • randrange()
  • glob
  • node.js
  • View
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록pathlib (1)

흰둥이는 코드를 짤 때 짖어 (왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!)

(파이썬) 폴더 관리 프로그램 실습

1. 압축 파일 정리하기 In [1]: import os os.getcwd() Out[1]: 'C:\\LeeCoding\\Python\\Jupyter' In [2]: # 정리 대상 폴더 경로를 설정 target_path = './고라니' In [3]: # 압축 파일 확인 import glob zipfile_path = [] for filename in glob.glob(os.path.join(target_path, '**/*.zip'), recursive=True): zipfile_path.append(filename) print(zipfile_path) ['./고라니\\데이터저장_물류.zip'] In [4]: # 압축 파일 해제 import zipfile for filename in zipfile_pa..

파이썬 기초 2023. 3. 14. 16:23
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바