上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: 原文转载地址:https://blog.csdn.net/iloveyin/article/details/21444613 快速上手 迫不及待了吗?本页内容为如何入门Requests提供了很好的指引。其假设你已经安装了Requests。如果还没有, 去 安装 一节看看吧。 首先,确认一下: Req 阅读全文
posted @ 2018-06-14 11:56 Chaman囍 阅读(751) 评论(0) 推荐(0)
摘要: 原文地址:https://blog.csdn.net/isoleo/article/details/13000975 python的set和其他语言类似, 是一个无序不重复元素集, 基本功能包括关系测试和消除重复元素. 集合对象还支持union(联合), intersection(交), diffe 阅读全文
posted @ 2018-05-31 15:56 Chaman囍 阅读(93591) 评论(0) 推荐(3)
摘要: 原文地址:http://www.jb51.net/article/65286.htm 1.了解正则表达式 正则表达式是对字符串操作的一种逻辑公式,就是用事先定义好的一些特定字符、及这些特定字符的组合,组成一个“规则字符串”,这个“规则字符串”用来表达对字符串的一种过滤逻辑。 正则表达式是用来匹配字符 阅读全文
posted @ 2018-05-24 10:14 Chaman囍 阅读(1951) 评论(0) 推荐(0)
摘要: 原文地址:https://blog.csdn.net/silviakafka/article/details/46744961 我们可以看到,返回的是一个元组,元祖每一个元素即上面一行的内容,所以用for去遍历它。 然后对应的将这行的第一列的内容给root 第二列 给dirs 第三列 给files 阅读全文
posted @ 2018-05-18 14:59 Chaman囍 阅读(406) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-03-27 11:49 Chaman囍 阅读(104) 评论(0) 推荐(0)
摘要: 1、将目标元素移动到页面可是范围内: el = driver.find_element_by_id("ageInputId1")el.location_once_scrolled_into_view 2、将浏览器滚动条移动至最底部: js = "var q=document.documentElem 阅读全文
posted @ 2018-03-20 11:59 Chaman囍 阅读(83) 评论(0) 推荐(0)
摘要: 原文转载自:http://blog.csdn.net/huilan_same/article/details/52246012 今天总结下selenium的下拉选择框。我们通常会遇到两种下拉框,一种使用的是html的标签select,另一种是使用input标签做的假下拉框。 后者我们通常的处理方式与 阅读全文
posted @ 2018-03-11 22:03 Chaman囍 阅读(449) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/huilan_same/article/details/52305176 #ActionChains基本用法 2.ActionChains方法列表 click(on_element=None) ——单击鼠标左键 click_and_hold(on_eleme 阅读全文
posted @ 2018-03-11 19:52 Chaman囍 阅读(455) 评论(0) 推荐(0)
摘要: 1、将字符串转化为时间: from datetime import datetime str_time = "2017-01-01 10:23:34" time_time = datetime.strptime(str_time,"%Y-%m-%D %H:%M:%S") 结果: 2017-01-01 阅读全文
posted @ 2018-03-05 14:58 Chaman囍 阅读(869) 评论(0) 推荐(0)
摘要: #字典的一键多值 print'方案一 list作为dict的值 值允许重复' d1={} key=1 value=2 d1.setdefault(key,[]).append(value) value=2 d1.setdefault(key,[]).append(value) print d1 #获 阅读全文
posted @ 2018-03-04 19:28 Chaman囍 阅读(4152) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 下一页