摘要: Python任务调度模块 – APScheduler 2015年6月11日 by debugo · 32 Comments APScheduler是一个Python定时任务框架,使用起来十分方便。提供了基于日期、固定时间间隔以及crontab类型的任务,并且可以持久化任务、并以daemon方式运行应 阅读全文
posted @ 2017-04-14 15:57 wsy11 阅读(2157) 评论(1) 推荐(0) 编辑
摘要: 先说一下,time.sleep()来让程序休眠叉叉秒,即运行到这个地方,程序将释放CPU,过了预设的叉叉秒后,程序继续运行。 看一个简单的例子,我最喜欢以最原始简单的例子来阐述一个东西。 import time for i in range(5): print i time.sleep(10) 这个 阅读全文
posted @ 2017-04-14 15:35 wsy11 阅读(675) 评论(0) 推荐(1) 编辑
摘要: 搞了一下午,终于搞明白了,记录下:python3.x 使用pymysql库访问 python2.x使用mysqldb库访问import pymysqlconn = pymysql.connect(host='xxx.xxx.xxx.xxx', user='name', passwd='123456' 阅读全文
posted @ 2017-01-22 15:49 wsy11 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 找到**appium安装目录,可以在 appium 源码里注释掉安装 unlock 和 setting 两个 app 的代码:lib/devices/android/android.js **https://static.oschina.net/uploads/space/2016/1012/145 阅读全文
posted @ 2017-01-19 15:19 wsy11 阅读(3440) 评论(2) 推荐(0) 编辑
摘要: [] 字符类,只要匹配里面的任意字符,都算匹配 . 元字符,可以匹配除换行符之外的所有字符 大小写敏感,但是可以关闭 \d 可以匹配0-9中的任意数字 {3}大括号里面的数字,边上前面一个字符匹配的次数 {3,10}表示匹配3-10次 ()小括号,表示小组 search 从字符串中查找 re.sea 阅读全文
posted @ 2017-01-16 16:13 wsy11 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-01-11 17:12 wsy11 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1、过滤站点 阅读全文
posted @ 2017-01-10 16:38 wsy11 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1、使用命令拦截: 命令栏输入:bpafter + 域名 取消拦截 bpafter 2、自动发送固定返回结果 设置返回内容: 1、匹配规则 2,、返回内容 修改好之后,点击save保存 阅读全文
posted @ 2017-01-10 15:19 wsy11 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 设置断点的两种方式: 1、通过工具栏设置断点 步骤:Rules --Automatic Breakpoints --选中 Before Requests 设置之后,客户端或者浏览器发起请求,模拟Google,搜索nba,查看fiddler, 修改搜索词为test,点击RUN to Completio 阅读全文
posted @ 2017-01-10 11:05 wsy11 阅读(265) 评论(0) 推荐(0) 编辑
摘要: import unittestfrom ddt import ddt, data, unpack@ddtclass MyTestCase(unittest.TestCase): @data((1, 2), (2, 3)) #多个数据项 @unpack #两个或超过两个需要使用@unpack def 阅读全文
posted @ 2017-01-09 17:13 wsy11 阅读(204) 评论(0) 推荐(0) 编辑