fmujie 发布的文章

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 recent call last): File "D:/PycharmProjects/untitled/test.py", line 42, in <module> with open('C:/baidu.png', 'wb')...

Python selenium踩坑记


PyCharm抛出的错误(完整):Traceback (most recent call last): File "D:/PycharmProjects/untitled/test.py", line 11, in <module> driver = webdriver.Chrome(executable_path=driver_path) File "C:\Users\19353\Anaconda3\envs\untitled\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__ desired_capabilities=desired_capabilities) File ...

召唤看板娘