SMACY2017

Results 2 issues of SMACY2017

Excellent project! I have followed your instructions and successfully run the code. Thank you ![图片](https://user-images.githubusercontent.com/55419749/125183583-3899e880-e24a-11eb-8b13-9e270ba3349e.png)

Hello, 我在使用过程中遇到了一个小问题,并想分享我找到的解决方案,希望能对其他使用者也有所帮助。 ### 问题描述 在使用 `_download_file_resumable` 函数下载文件时,如果服务器的响应中没有 `content-length` 头部,脚本会抛出 `TypeError`。这是因为脚本试图将 `None` 转换为整数。 ### 出现错误的代码 ```python total_length = int(r.headers.get('content-length')) ``` ### 建议的解决方案 我建议在尝试转换之前检查 `content-length` 是否存在。如果不存在,可以将 `total_length` 设置为 0 或 `None`。以下是修改后的代码段: ```python...