如何使用requests从网络上下载一个图像文件 具体案例可查看我的 “Python爬虫” 专栏 import requests req = requests.get('http://t.cn/EfgN7gz') # print(req.text) with open('files/book.png', 'wb') as f: f.write(req.content) 74 - selenium与Web页面交互