我有这个python代码:
if '.zip' in add:
print 'Found ' + add + ' archive. We will do nothing.'
unZipFileName = add
z = zipfile.ZipFile(unZipFileName) // here i got the error
for name in z.namelist():
outpath = unZipFileName + '/'
z.extract(name, outpath)
我打印了os.path.isfile(add)
并返回True。
我在windows上使用了相同的代码,而且它很管用。
如果归档是在windows上创建的,而我试图在linux上解包,这是个问题?在
目前没有回答
相关问题 更多 >
编程相关推荐