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 |
Tags
- mro()
- 오버라이딩
- items()
- __len__
- shutil
- JS
- zipfile
- glob
- __annotations__
- fnmatch
- count()
- fileinput
- choice()
- Database
- CSS
- HTML
- 파이썬
- MySqlDB
- locals()
- __sub__
- node.js
- decode()
- View
- shuffle()
- MySQL
- remove()
- inplace()
- __getitem__
- randrange()
- discard()
Archives
- Today
- Total
목록openpyxl (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