05 2018 档案

摘要:pyquery 匹配NavigableString不像xpath那样精确找打匹配对象,只需匹配包含NavigableString的根节点 阅读全文
posted @ 2018-05-31 17:54 sneike 阅读(143) 评论(0) 推荐(0)
摘要:关键字与函数名称必须全部大写 数据库名称、表名称、字段名称全部小写 SQL语句必须以分号结尾 阅读全文
posted @ 2018-05-30 21:13 sneike 阅读(167) 评论(0) 推荐(0)
摘要:按装scrapy,首先需要安装支持scrapy的库 1.wheel .pip install wheel 2.lxml pip install lxml 3.PyopenSSL、Twisted、Pywin32 pip安装有点慢,下载链接:https://www.lfd.uci.edu/~gohlke 阅读全文
posted @ 2018-05-21 21:13 sneike 阅读(114) 评论(0) 推荐(0)
摘要:1 import xlrd 2 3 #打开excel文件 4 book = xlrd.open_workbook('salary.xls') 5 6 #打印每个工作表的名称 7 for sheet in book.sheets(): 8 print(sheet.name) 9 10 #选择工作表 11 sheet = book.sheet_by_name('管理公... 阅读全文
posted @ 2018-05-19 22:41 sneike 阅读(130) 评论(0) 推荐(0)
摘要:Example 0: open a new Chrome browser load the page at the given URL Example 1: open a new Chrome browser load the baidu homepage search for “python” c 阅读全文
posted @ 2018-05-13 18:32 sneike 阅读(161) 评论(0) 推荐(0)
摘要:post:请求的url不带参数 查询参数在WebForms保存 get:请求的url会附带查询参数 查询参数在QueryString保存 阅读全文
posted @ 2018-05-04 17:55 sneike 阅读(1133) 评论(0) 推荐(0)