![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
====问题解决方法====
林次次
Life is short, use Python.
展开
-
python+selenium对网页执行js脚本报错“$ is not defined”
背景在python里用selenium模拟浏览器的时候需要发送一个POST请求,我用的是webdriver的execute_script方法,对页面执行下面的js代码来获取数据$.post(........)然后运行的时候报错 “$ is not defined”原因对页面执行$的js代码的前提是该网页已经加载过jquery, 现在的状态是页面没有加载jquery, 但...原创 2018-05-23 09:27:04 · 7327 阅读 · 0 评论 -
E:Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
在Ubuntu系统里用sudo apt-get install ….时遇到错误:E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is原创 2018-02-01 22:05:06 · 1789 阅读 · 0 评论