仅供参考:
import requests
def func1(urls):
response = requests.get(urls)
with open(file=r'C:\Users\Hu\Desktop\订阅逛逛\tu.jpg',mode='wb') as g:
g.write(response.content)
if __name__ == '__main__':
func1('https://img.alicdn.com/imgextra/i3/352469034/O1CN01fsbc682GbcrPFuSwn_!!352469034.jpg')
本文介绍了一个简单的Python脚本,该脚本使用requests库从指定URL下载一张图片,并将其保存到本地计算机的指定路径中。
1124

被折叠的 条评论
为什么被折叠?



