繁体   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