str.format() 作用:替换str中的替代变量。 “I am {}”.format("NIcklas") https://blog.csdn.net/jpch89/article/details/84099277 ...
分类:
编程语言 时间:
2021-06-07 20:58:05
阅读次数:
0
in 和 exists区别 in 是把外表和内表作hash join,而exists是对外表作loop,每次loop再对内表进行查询。 一直以来认为exists比in效率高的说法是不准确的。 如果查询的两个表大小相当,那么用in和exists差别不大。 如果两个表中一个较小,一个是大表,则子查询表大 ...
分类:
其他好文 时间:
2021-06-07 20:57:52
阅读次数:
0
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
flyfhj 2019-01-25 09:56:00 31335 已收藏 10版权关于JVM参数-XX:SurvivorRatio的理解JVM参数中有一个比较重要的参数SurvivorRatio,它定义了新生代中Eden区域和Survivor区域(From幸存区或To幸存区)的比例,默认为8,也就是 ...
分类:
其他好文 时间:
2021-06-07 20:39:20
阅读次数:
0
运行环境 centos 5.6 hadoop hivesqoop是让hadoop技术支持的clouder公司开发的一个在关系数据库和hdfs,hive之间数据导入导出的一个工具 在使用过程中可能遇到的问题: sqoop依赖zookeeper,所以必须配置ZOOKEEPER_HOME到环境变量中。sq ...
分类:
数据库 时间:
2021-06-07 20:36:05
阅读次数:
0
我有两个集合,文章和评论,评论中的文章是文章中_id的外键. db.collection('article').aggregate( [ { $lookup: { from: "comments", localField: "_id", foreignField: "articleId", as: ...
分类:
数据库 时间:
2021-06-07 20:35:52
阅读次数:
0
按照官方设置写的路由,卡在了Cannot read property 'matched' of undefined这个错误问题,查了很多资料才知道,有两上命名是不能改动的,route与router; 在目录新建了文件router.js import Vue from 'vue' import vue ...
分类:
其他好文 时间:
2021-06-07 20:35:33
阅读次数:
0
python包自我理解 1、python包 ? 文件夹下有__init__.py文件,这个文件夹就是一个包 ? 可以通过import包名(也就是文件夹名称)导入包,当执行import包名时python会加载__init__.py文件 ? 可以在__init__.py文件指定导入的模块,那样在导包时就 ...
分类:
编程语言 时间:
2021-06-07 20:30:25
阅读次数:
0