【发布时间】:2014-07-12 12:42:24
【问题描述】:
我正在尝试使用 python 3.4 创建 zipfile。 执行时显示以下错误:
AttributeError: 'module' object has no attribute 'Zipfile'
我的代码:
import zipfile
f= zipfile.Zipfile("testZIP.zip","w")
【问题讨论】:
标签: python zipfile python-3.4
我正在尝试使用 python 3.4 创建 zipfile。 执行时显示以下错误:
AttributeError: 'module' object has no attribute 'Zipfile'
我的代码:
import zipfile
f= zipfile.Zipfile("testZIP.zip","w")
【问题讨论】:
标签: python zipfile python-3.4
它是zipfile.ZipFile,大写为F,而不是zipfile.Zipfile
【讨论】: