Python文件写入error
问题描述:测试requests库,抓了一张百度的logo,在文件写入的时候报了权限不够的错import requests
response = requests.get('https://www.baidu.com/img/bd_logo1.png')
print(response.content)
with open('C:/baidu.png', 'wb') as f:
f.write(response.content)
f.close()Traceback (most rece...