阅读背景:

python通过http下载文件的方法

来源:互联网 

1、通过requests.get方法

r = requests.get("https://200.20.3.20:8080/job/Compile/job/aaa/496/artifact/bbb.iso")

with open(os.path.join(os.path.dirname(os.path.abspath("__file__")),"bbb.iso"),"wb") as f:
    f.write(r.content)
r = requests.get("http



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: