下载文件 下载文件 123def Download_file(): url="http:/xxxx" path="/onlyT/readline-6.2-10.alios7.x86_64.rpm" r=requests.get(url) with open(path,"wb") as f: f.write(r.content) f.close()