会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
SneakingSled
博客园
首页
新随笔
联系
订阅
管理
2018年10月8日
几个正则题目
摘要: 1.匹配hi开头的单词,只需要匹配一次。s='hi ,his name is history!' 2.匹配hi开头的单词,需要匹配二次。s='hi ,his name is history!' 3.匹配hi开头的单词,需要返回全部匹配结果。s='hi ,his name is history!' 4
阅读全文
posted @ 2018-10-08 17:03 SneakingSled
阅读(264)
评论(0)
推荐(0)
2018年9月21日
工具类-FormatTime
摘要: .
阅读全文
posted @ 2018-09-21 14:34 SneakingSled
阅读(841)
评论(0)
推荐(0)
操作excel
摘要: 安装openpyxl库
阅读全文
posted @ 2018-09-21 11:13 SneakingSled
阅读(105)
评论(0)
推荐(0)
windows-创建python虚拟环境
摘要: 1.首先在D盘根目录安装Python3.6版本 2.安装virtualenv库 3.创建新环境 4.进入e:\auto_test\Script 5.结束
阅读全文
posted @ 2018-09-21 10:51 SneakingSled
阅读(122)
评论(0)
推荐(0)
2018年9月13日
selenium API(二)
摘要: 1.单选框 2.复选框 3.截取屏幕 4.拖拽元素 5.win32模拟键盘操作 6.设置剪切板内容
阅读全文
posted @ 2018-09-13 16:38 SneakingSled
阅读(105)
评论(0)
推荐(0)
selenium API(一)
摘要: 1.访问,前进,后退,刷新,最大化 2.获取浏览器的位置,设置浏览器的位置 3.获取浏览器的大小,设置浏览器的大小 4.获取driver相关属性 5.切换句柄 6.八种定位方式 7.判断元素是否可见 8.判断元素是否可操作 9.获取元素包含的attribute 10.获取元素的css属性 11.清空
阅读全文
posted @ 2018-09-13 14:19 SneakingSled
阅读(110)
评论(0)
推荐(0)
不同浏览器的访问
摘要: #encoding=utf-8 from selenium import webdriver from threading import Thread import time def create_driver(browser): if browser == 'IE': driver = webdriver.Ie(executable_path="e:\driver\IE...
阅读全文
posted @ 2018-09-13 14:08 SneakingSled
阅读(136)
评论(0)
推荐(0)
2018年9月12日
冒泡排序实现
摘要: public void bubbleSort(int arr[]) {for (int i = arr.length - 1; i > 0; i--) { for (int j = 0; j arr[j + 1]) { int temp = arr[j]; arr[j] = arr[j + ...
阅读全文
posted @ 2018-09-12 17:44 SneakingSled
阅读(83)
评论(0)
推荐(0)
requests库的使用
摘要: 1.requests库的安装 2.发送get/post请求 3.发送put/delete/head/options请求 4.发送带参数的URL 注意字典里值为 None 的键都不会被添加到 URL 的查询字符串里 5.返回值及相关内容 6.请求头 7.文件 8.cookie 9.超时时间 10.
阅读全文
posted @ 2018-09-12 13:56 SneakingSled
阅读(132)
评论(0)
推荐(0)
2018年9月11日
Python对JSON数据的解析
摘要: 1.python与json数据结构的对应情况 2.dumps:卸载,将json对象卸载为str *sort_keys:排序 *indent:格式化 *ensure_ascii参数,想要输出中文时,要设置ensure_ascii=False *skipkeys参数,在encoding过程中,dict对
阅读全文
posted @ 2018-09-11 17:23 SneakingSled
阅读(5672)
评论(0)
推荐(1)
下一页
公告