- 博客(5)
- 收藏
- 关注
原创 关于chromedriver executable needs to be in path 问题
刚刚开始学习Python爬虫,在 Python 下引用 Selenium 包开发时, WebDriver甩出了一个错误消息然后就中断了,错误消息:WebDriverException: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromed...
2018-08-14 11:00:36
2161
原创 Python基本语法
1- """ 或 ''' 来指定多行字符串example: s='''this is a multi-line string. This is the second line'''print: this is a multi-line string. This is the second line2- 从其他信息中构...
2018-07-31 18:02:59
177
原创 退出Python命令行
1- 在网上查看,很多人说可以通过Ctrl+Z来退出,不知道是电脑的原因还是什么,亲测无效2- 通过输入quit(),">>>quit()",亲测有效
2018-07-31 16:57:40
2146
转载 使用selenium时提示:ImportError:No module named selenium
使用selenium时提示:ImportError:No module named selenium问题分析:用的是mac系统,已经通过sudo pip install -U selenium安装好了selenium,但是无论用命令行还是用sublime导入selenium都会提示错误。于是查了一下python的路径,才发现我电脑有两个python路径一个在路径/usr/loc...
2018-07-31 10:36:32
2916
2
原创 WebView、SwipeRefreshLayout下拉刷新
SwipeRefreshLayout:使用SwipeRefreshLayout可以实现下拉刷新,前提是布局里需要包裹一个可以滑动的子控件,然后在代码里设置OnRefreshListener设置监听,最后在监听里设置刷新时的数据获取就可以了。1-通过一些方法来设置SwipeRefreshLayout是否可以刷新: setRefreshing(true),展开刷新动画。 ...
2018-07-17 15:46:43
431
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人