1
storefile(ftpcon, file, archive.open('NONVOL/'+file))

给我 AttributeError: ZipFile instance has no attributeopen

但是当我更改.open.read(因为 open() 在 2.4 中不可用)时,我得到:

AttributeError:str对象没有属性read

在:

ftpcon.storbinary('STOR ' + filename.strip(), file)
4

0 回答 0