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