代码:
import requestsresponse = requests.get('https://s1.hdslb.com/bfs/static/jinkela/video/asserts/33.png')with open('C:\\Users\\lingu\\Desktop\\1.png', 'wb') as f: f.write(response.content) f.close()
前提是先用pip install requests命令安装requests库