python 下载图片

  urlc ='http://192.168.0.18:8080'+str(cr)
    print(urlc)
    pic = requests.get(urlc, timeout=15)
    string = '2.jpg'
    import time
    with open(string, 'wb') as f:
        f.write(pic.content)
        f.close()

评论

刷新

友情链接