python下载文档

import requests

url = "https://网址/static/img/banner02.c2e5c60.png"
path = "anner02.c2e5c60.png"
r = requests.get(url)
with open(path, "wb") as f:
    f.write(r.content)
posted @ 2021-04-26 09:56  叨叨勋  阅读(79)  评论(0编辑  收藏  举报