簡體   English   中英

無法使用python創建ZIP文件

[英]Unable to Create ZIPfile using python

我正在嘗試使用python 3.4創建zipfile。 執行后會顯示以下錯誤:

AttributeError: 'module' object has no attribute 'Zipfile'

我的代碼:

import zipfile

f= zipfile.Zipfile("testZIP.zip","w")

它是zipfile.ZipFile ,大寫zipfile.Zipfile F不是zipfile.Zipfile

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM