[英]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.