python 下载大文件报 [Python] ConnectionResetError: [Errno 104] Connection reset by peer


def download(path):
    import datetime
    import os
    print(datetime.datetime.now())
    if os.path.exists(path):
        print('存在重新下载')
        os.remove(path)
        os.system('wget http://47.90.204.165:6001/daily_output/RobochartistResult.xlsx')
        print('下载完成')
        print(datetime.datetime.now())

 

你可能感兴趣的:(python 下载大文件报 [Python] ConnectionResetError: [Errno 104] Connection reset by peer)