会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gao-ch
博客园
首页
新随笔
联系
订阅
管理
2023年6月29日
python-字典列表中删除指定的键值对
摘要: ```python dict_list = [ {"a": 1, "b": 2, "c": 3}, {"a": 11, "b": 22, "c": 33}, {"a": 111, "b": 222, "c": 333}, {"a": 1111, "b": 2222, "c": 3333}, ] fo
阅读全文
posted @ 2023-06-29 21:39 小高2
阅读(107)
评论(0)
推荐(0)
2023年1月18日
浏览器彻底清缓存
摘要: 以google浏览器为例。 1. 清除浏览器缓存 执行图中步骤或使用快捷键ctrl+shift+delete 将【基本】和【高级】的时间范围修改为时间不限,点击【清除数据】即可 2. 清除缓存并硬性加载 打开浏览器的控制台。快捷键(F12或Fn+F12或者ctrl+shift+I或者ctrl+shi
阅读全文
posted @ 2023-01-18 16:35 小高2
阅读(2646)
评论(0)
推荐(0)
2022年8月25日
js-IIFE-即使调用的函数表达式
摘要: 将函数矮化成表达式,一次性函数 var foo = function(){ console.log(2) }(); + function(){ console.log(2) }(); - function(){ console.log(2) }(); ! function(){ console.lo
阅读全文
posted @ 2022-08-25 23:06 小高2
阅读(27)
评论(0)
推荐(0)
js-forEach和匿名函数
摘要: foreach [].foreach(function(item, index, array){ // item: []中的每一个元素对象 // index:[]中每一个元素对象的索引 // array:[]本身 // 循环体 }) 匿名函数 arr = [1,2,3,5,6] arr.filter
阅读全文
posted @ 2022-08-25 22:37 小高2
阅读(82)
评论(0)
推荐(0)
2022年8月23日
selenium自动化测试-文件上传
摘要: 文件上传 直接通过send_key上传 通过点击win窗口上传 直接通过send_key上传 这种方法与向input标签中输入文本一样 import time from selenium import webdriver from selenium.webdriver import ActionCh
阅读全文
posted @ 2022-08-23 21:26 小高2
阅读(91)
评论(0)
推荐(0)
2022年8月13日
时间模块time-常用方法
摘要: 时间戳 # 获取时间戳 time.time() # 时间元组转为时间戳 time.mktime(time.localtime()) 时间元组 # 获取时间元组 time.localtime() # time.struct_time( # 年月日 # tm_year=2022, tm_mon=8, t
阅读全文
posted @ 2022-08-13 22:54 小高2
阅读(40)
评论(0)
推荐(0)
2022年7月27日
正交试验法
摘要: 正价实验法 因子:所有影响试验指标的条件 水平(因素):影响因子的取值,就是因子的状态 $$ L_{r}(m^n) $$ 因子数:n 水平数:m 形成的正交表行数即用例数:r = n*(m-1)+1 正交表选取 因子数与水平数,正好对应一个存在的正交表 因子数或水平数,正好有一个相同,另一个不同,取
阅读全文
posted @ 2022-07-27 22:03 小高2
阅读(1051)
评论(0)
推荐(0)
python-selenium对下拉选择框的操作,Select类
摘要: 首先要确认下拉选择框,是通过html中的select-option标签组合而成的 **Select类只能操作select-option组成的下拉选择框**,例如 <select id="s1Id"> <option></option> <option value="o1" id="id1">o1</
阅读全文
posted @ 2022-07-27 00:19 小高2
阅读(1392)
评论(0)
推荐(0)
2022年7月25日
python-selenium中的两个基础对象webdriver和webelement
摘要: webdriver浏览器驱动对象 常用的属性和方法 | 属性/方法 | 描述 | | | | | driver.titile | 获取当前页面的标题 | | driver.name |获取浏览器的名称 | | driver.current_url | 获取当前的url | | driver.page
阅读全文
posted @ 2022-07-25 20:13 小高2
阅读(121)
评论(0)
推荐(0)
公告