본문 바로가기 메뉴 바로가기

무루무루 개발일지

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

무루무루 개발일지

검색하기 폼
  • 분류 전체보기 (50)
    • Python (29)
    • MySQL (3)
    • Web (17)
  • 방명록

디렉토리예제 (1)
25. 디렉토리 관련 프로그램

1. 압축파일 정리하기 # 현재 경로 알아보기 import os os.getcwd() # 정리 대상 디렉토리 경로 설정하기 target_path = './정리' # '정리' 디렉토리에서 압축 파일 확인하기 zipfile_path = [] for filname in glob.glob(os.path.join(target_path, '**/*.zip'), recursive = True): zipfile_path.append(filname) print(zipfile_path) # 압축 파일 해제하기 # for filename in zipfile_path: # with zipfile.Zipfile(filename) as myzip: # myzip.extractall('압축푸는곳') import zipfile fo..

Python 2024. 3. 22. 20:55
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • trasform
  • 고정위치
  • 출력
  • MySQL
  • 변수
  • MySQLdb
  • 닷홈
  • 셋
  • DB단어장
  • 상대위치
  • Python
  • 박스사이징
  • Enclosing
  • 파이썬SQL연동
  • 클래스문
  • __call__
  • 줄 간격
  • FOR
  • html이론
  • 리스트
  • JavaScript
  • animation적용
  • 폼
  • 절대위치
  • 솔로의식탁
  • 로또번호생성
  • HTML
  • CSS
  • EPL정보프로그램
  • DB프로그램만들기
more
«   2025/06   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바