下载文件

  • 123
    1. def Download_file():
    2. url="http:/xxxx"
    3. path="/onlyT/readline-6.2-10.alios7.x86_64.rpm"
    4. r=requests.get(url)
    5. with open(path,"wb") as f:
    6. f.write(r.content)
    7. f.close()