- 博客(7)
- 收藏
- 关注
原创 python高级多线程,以及强制结束线程
一、多线程1.多线程使用import threading#target为方法,args为方法参数t1 = threading.Thread(target=self.more_xiancheng, args=(receivedata,))t1.start()2.强制结束线程while True: logger.info('-------开始进入循环,查看数据库中pid和用例状态-------') selectobj = models.MyTestCase.objects.fi
2021-08-09 15:17:39
690
原创 vue前端开发
一、创建项目进入vue GUI新建项目手动选择安装功能配置 使用哈希方式路由,标准配置文件格式Element-UI安装上面安装完,配置下Element-UI配置axios依赖
2021-07-01 15:07:22
138
原创 ubuntu安装docker、minio、chrome(谷歌浏览器)、ssh root登录;windows安装node.js
一、ubuntu安装docker切换rootsu更新ubuntu的apt源apt-get update允许apt通过HTTPS使用仓库apt-get install apt-transport-https ca-certificates curl software-properties-common添加Docker官方GPG keycurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key ad
2021-06-28 17:18:44
525
1
转载 Selenium UI 自动化获取接口数据
Selenium UI 自动化获取接口数据1.前端向接口的传参;2.捕获到接口返回的内容后,判断前端是否有按照接口返回的内容进行展示针对第一点,我上家公司是做旅游的,旅客预订完人数、房间数后前端是需要向接口传拼房情况的,这里面大概有 10 几种情况,你如果每次都手工回归真的挺花时间的;针对第二点,上家公司应用在火车票退改签上了,根据上一个接口返回的退改签标志字段属性,检查后面页面的退改签标志是否正确,也是提升了不少效率。好了,废话不多说,咱开始上干货~这里给大家介绍 Slenium 的一个基友:b
2021-02-26 10:23:54
1729
1
原创 python读取目录下所有文件大小、MD5、创建时间,与删除
一、获取文件路径import osimport timeimport hashlibclass File( object ): def delete_file( self, folder_path ): for root, dirs, files in os.walk( folder_path ): for file in files: file_path = os.path.join( root, file
2021-01-12 16:58:49
715
原创 python表格读取、写入、追加
一、文件读取import xlwtimport xlrdclass File( object ):def read_excel( self, read_file_path, sheet, num ): wd = xlrd.open_workbook( read_file_path ) sheet = wd.sheet_by_name( sheet ) check_list = [] for a in range( sheet.nrows ):
2021-01-11 18:30:08
580
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅