for link in driver.find_elements_by_css_selector("tr:nth-child(1) > td.taskStatus use"): assert_status = link.get_attribute('xlink:href') print(assert ...
分类:
编程语言 时间:
2021-06-07 20:49:35
阅读次数:
0
@staticmethoddef unzip_file(failed_file): zip_file = zipfile.ZipFile(failed_file) print(zip_file) if os.path.isdir(failed_file[0:-20]): pass else: os. ...
分类:
编程语言 时间:
2021-06-07 20:42:48
阅读次数:
0
rows = driver.find_elements_by_css_selector('div.wrapper>ul.list>li')logger.info(len(rows)) ...
分类:
编程语言 时间:
2021-06-07 20:41:35
阅读次数:
0
查看当前系统版本的详细信息 # cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) yum源下载 地址:https://dev.mysql.com/downloads/repo/yum/ 下载地址:https://repo.mys ...
分类:
数据库 时间:
2021-06-07 20:40:56
阅读次数:
0
背景:服务器运行过程中发现内存不够用,缓存的又太多 现象: 解决办法: 1、同步数据到磁盘 [root@localhost ~]# sync 2、根据需求清除对应缓存 [root@localhost ~]# echo 3 > /proc/sys/vm/drop_caches 参数说明: 0 //默认 ...
分类:
系统相关 时间:
2021-06-07 20:40:37
阅读次数:
0
python包自我理解 1、python包 ? 文件夹下有__init__.py文件,这个文件夹就是一个包 ? 可以通过import包名(也就是文件夹名称)导入包,当执行import包名时python会加载__init__.py文件 ? 可以在__init__.py文件指定导入的模块,那样在导包时就 ...
分类:
编程语言 时间:
2021-06-07 20:30:25
阅读次数:
0
Python访问PostGIS(建表、空间索引、分区表):https://www.cnblogs.com/likehua/p/3908323.html ...
分类:
编程语言 时间:
2021-06-07 20:29:14
阅读次数:
0
安装Redis 首先安装wget命令,wget是一个从网络上下载文件的自由工具。 yum install wget 创建一个目录“soft” mkdir soft cd到soft目录中安装redis 打开Redis官网(https://redis.io/)获取下载链接https://download ...
分类:
其他好文 时间:
2021-06-07 20:10:20
阅读次数:
0
一、定义xml文件内容,既然是自定义则所有的根节点随便写 使用xml.dom.minidom三方模块对xml文件进行解析 from xml.dom.minidom import parse def getIP(machineNum): #读取xml文件 domTree = parse("./conf ...
分类:
编程语言 时间:
2021-06-07 20:09:27
阅读次数:
0
基于BOW的图像检索 一,图像检索概述 矢量空间模型 K-means算法 Bag of features原理 二,python实现过程 代码 结果分析 一,图像检索概述 基于文本的图像检索方法始于上世纪70年代,它利用文本标注的方式对图像中的内容进行描述,从而为每幅图像形成描述这幅图像内容的关键词, ...
分类:
其他好文 时间:
2021-06-07 20:00:02
阅读次数:
0