def download_bzip2(path, url):
if os.path.exists(path): return
print("Downloading {0} from {1}...".format(path, url))
response = urlopen(url)
with open(path, 'wb') as f:
f.write(bz2.decompress(response.read()))
文章目录