ZipFile () 函數其實有一個第二參數mode, 其預設值為'r' (讀取zip 檔, 即解壓縮模式), 要壓縮檔案時須使用mode='w', 要添加檔案到zip 檔則使用mode='a'.
確定! 回上一頁