곽진석의 홈페이지
석이의 바이오리듬 (17732 일)
체력(-26)
감성(97)
지성(86)
지각(-73)
Family Site
회사(InterPark)
튜닝
RGB1
RGB2
침입URL(2011/09/06)
DB 보안 체크 리스트
DNS Powered by DNSEver.com


접속현황
     5 
     18,252 
연락처
kjs819@gmail.com

 0
 418    1  21


Name  
   곽진석 
Subject  
   python zip
import os
import zipfile

fantasy_zip = zipfile.ZipFile('C:\\Stories\\Fantasy\\archive.zip', 'w')

for folder, subfolders, files in os.walk('C:\\Stories\\Fantasy'):

    for file in files:
        if file.endswith('.pdf'):
            fantasy_zip.write(os.path.join(folder, file), os.path.relpath(os.path.join(folder,file), 'C:\\Stories\\Fantasy'), compress_type = zipfile.ZIP_DEFLATED)

fantasy_zip.close()

Prev
   파이썬 OCR

곽진석
Next
   python mail

곽진석


Copyright 1999-2022 Zeroboard / skin by JiYoo
DNS Powered by DNSEver.com