无法使用python创建ZIP文件

use*_*232 3 python zipfile python-3.4

我正在尝试使用python 3.4创建zipfile.执行后会显示以下错误:

AttributeError: 'module' object has no attribute 'Zipfile'
Run Code Online (Sandbox Code Playgroud)

我的代码:

import zipfile

f= zipfile.Zipfile("testZIP.zip","w")
Run Code Online (Sandbox Code Playgroud)

Pad*_*ham 12

它不是zipfile.ZipFile资本Fzipfile.Zipfile