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
一、 . 导出JAR file Export-->JAR file,按如下设置后点“Finish” 二、 1.首先打开Android Studio,新建一个项目 2.接下来展开App目录,找到libs文件夹 3.然后将准备好的Jar包拷贝进去, 4.接着右键Jar包,选择Add As Library ...
分类:
移动开发 时间:
2021-06-07 20:35:17
阅读次数:
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
一、定义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
变量作用域 类变量 加关键值static 实例变量 从属于对象;如果不自行初始化,这个类型的默认值 局部变量 必须声明和初始化值 public class Variable { static double salary =2500; //类变量 String str="hello,world!";/ ...
分类:
其他好文 时间:
2021-06-07 20:09:00
阅读次数:
0
PyMysql连接数据库 防止sql注入 import pymysql ? ? def insertsql(): # 建立连接 connection_sql = pymysql.connect( host='localhost', port=3306, user='root', password=' ...
分类:
数据库 时间:
2021-06-07 20:05:01
阅读次数:
0
2. zookeeper安装 2.1 镜像地址 镜像库地址:http://archive.apache.org/dist/zookeeper/ 我们可以看到,zk的版本是比较多的,我们在使用的时候,应该尽量避免最新的版本 因为新版本中或许会存在某些bug 新版本中的错误,你可能百度也搜不到 所以我们 ...
分类:
其他好文 时间:
2021-06-07 20:00:47
阅读次数:
0