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