摘要: 转:http://blog.csdn.net/heybob/article/details/52922645 1,安装(好像是这样安装的) $ sudo pip install selenium 查看版本 >>> import selenium >>> print selenium.__versio 阅读全文
posted @ 2017-11-02 15:02 zy-- 阅读(1839) 评论(0) 推荐(0)
摘要: Resolving failed: Temporary failure in name resolution 错误解决方法 首先,检查自己的服务器是否配置了DNS; 其次,在确认了自己已经配置了DNS后,并且域名解析已经正常的情况下,还有上面的问题,接下来就是重启自己的web服务器。比如,apach 阅读全文
posted @ 2017-11-02 03:04 zy-- 阅读(212) 评论(0) 推荐(0)
摘要: 转:http://blog.csdn.net/qq_15157439/article/details/52027551 1.打开网页,复制setuptools的下载链接,利用wget下载安装包 wget http://pypi.python.org/packages/source/s/setupto 阅读全文
posted @ 2017-11-01 22:03 zy-- 阅读(3937) 评论(0) 推荐(0)
摘要: 1.sudo vi /etc/apt/sources.list 2.替换# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted deb-src http://archive.ubuntu.com/ubuntu xenial main restricte... 阅读全文
posted @ 2017-11-01 20:35 zy-- 阅读(2337) 评论(0) 推荐(0)
摘要: 转(http://www.cnblogs.com/Peit/p/6347632.html) 1.安装phantomjs —-下载程序文件 32位ubuntu下载链接是https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-lin 阅读全文
posted @ 2017-11-01 17:49 zy-- 阅读(1173) 评论(0) 推荐(0)
摘要: 一、从 user 用户切换到 root 用户 不管是用图形模式登录 Ubuntu,还是命令行模式登录,我们会发现缺省的用户是 user,但是当我们需要执行一些具有 root 权限的操作(如修还系统文件)时,经常需要用 sudo 授权,感觉很麻烦,此时我们可以切换到 root 用户,只需要简单的执行 阅读全文
posted @ 2017-10-20 19:02 zy-- 阅读(964) 评论(0) 推荐(0)
摘要: 转载 http://blog.csdn.net/qq_27093465/article/details/52817938 阅读全文
posted @ 2017-10-18 20:34 zy-- 阅读(152) 评论(0) 推荐(0)
摘要: Python自带的模块:/usr/lib/python2.7/urllib2.py Python的第三方模块:/usr/local/lib/python2.7/site-packages:hh 阅读全文
posted @ 2017-10-15 22:04 zy-- 阅读(113) 评论(0) 推荐(0)
摘要: count(*)表示计算总行数 select count(*) from students; max(列)表示求此列的最大值 select max(id) from students where gender=0; min(列)表示求此列的最大值 select min(id) from studen 阅读全文
posted @ 2017-09-28 15:36 zy-- 阅读(188) 评论(0) 推荐(0)
摘要: vi 3 中模式: w保存 q退出 !强制 wq保存退出 x(小写) shift+zz q!不保存退出 Ctrl + n 自动补全 光标键:(命令模式) H 左 J 下 K 上 L 右 M 中间位置 L 当前屏幕的最后一行 yy 复制,8yy:表示从当前光标所在的行开始复制8行 p 粘贴 dd 剪刀 阅读全文
posted @ 2017-09-23 20:00 zy-- 阅读(141) 评论(1) 推荐(0)