【发布时间】:2016-07-07 23:57:23
【问题描述】:
我正在使用 Python 3.4。 写作
csv_f = tarfile.open('C:\\Users\\somefile.gz')
工作正常,但是这个
csv_f = tarfile.extract('C:\\Users\\somefile.gz')
引起反应
AttributeError: 'module' object has no attribute 'extract'
似乎在库中找不到 extract 和 extractall 函数。怎么可能?
【问题讨论】: