티스토리 뷰
1 2 3 4 5 6 7 8 | import tarfile tar = tarfile.open(r"c:\test.tar.gz", "w:gz") tar.add(r"C:\data") tar.close() tar = tarfile.open(r"c:\\test.tar.gz", "r:gz") for tarinfo in tar: tar.extract(tarinfo, r"c:\\extract_data") | cs |
'프로그래밍' 카테고리의 다른 글
| Python stderr print (0) | 2017.07.14 |
|---|---|
| Python zipfile 패키징/언패키징 (0) | 2017.07.12 |
| 정규표현식 예제 (0) | 2017.05.08 |
| Python 딕셔너리, 딕셔너리 리스트 타입 정렬(min, max, sorted, operator, lambda) (0) | 2017.01.03 |
| Python 포트 스캔(socket, threading, Queue, gc, optparse) (0) | 2017.01.03 |
댓글
warpmemory
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
페이지
TAG
- Module
- monitoring
- Python
- check
- 코드
- MariaDB
- 외부링크
- code
- deview
- Web
- configuration
- client
- Linux
- example
- limits
- Ansible
- mysql
- engineering
- RESTful
- httpd
- apache
- File
- 번역
- 명령어
- Windows
- 예제
- error
- command
- PowerShell
- 이슈처리
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함