250x250
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
- 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
Archives
- Today
- Total
목록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