import urllib.request
imgurl="https://ss3.baidu.com/9fo3dSag_xI4khGko9WTAnF6hhy/image/h%3D300/sign=84337ed7c7134954611eee64664f92dd/ac6eddc451da81cbe337459b5e66d01608243197.jpg"

response = urllib.request.urlopen(imgurl)
cat_img = response.read()
 
with open('cat_500_600.jpg','wb') as f:
 f.write(cat_img)
 

相关文章:

  • 2022-01-04
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-14
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
相关资源
相似解决方案