Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文件下载到一半了,还是因为网络问题导致下载时出错或者超时,这要跟他们做吗?
在Python 文档中
在 2.5 版更改:当 urlretrieve() 检测到可用数据量小于预期量(即 Content-Length 标头报告的大小)时,它将引发 ContentTooShortError。例如,当下载中断时,可能会发生这种情况。