def my_urlretrieve(url, filename):
r = MyURLopener().retrieve(url, filename)
if sys.version_info >= (2, 7, 12):
# Work around https://bugs.python.org/issue27973
urllib.urlcleanup()
return r
# Download a file, cleaning up the partial file if the transfer
# fails or is aborted before completion.
评论列表
文章目录