方法一: certutil -urlcache -split -f http://xx.xx.xx.xx/test.zip c:\test.zip (windows远程下载文件至本地,仅需要一个cmd执行的地方) 方法二: curl http://xx.xx.xx.xx/test.zip -o c: ...
最近发现一个能够任意生成各种数据的python库:faker,可以借助它来生成各种数据,例如姓名、地名、日期、电话号码等(各种有意义、无意义的假数据) git地址:https://github.com/joke2k/faker 文档:https://faker.readthedocs.io/en/s ...
分类:
其他好文 时间:
2021-06-07 20:58:38
阅读次数:
0
str.format() 作用:替换str中的替代变量。 “I am {}”.format("NIcklas") https://blog.csdn.net/jpch89/article/details/84099277 ...
分类:
编程语言 时间:
2021-06-07 20:58:05
阅读次数:
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
我有两个集合,文章和评论,评论中的文章是文章中_id的外键. db.collection('article').aggregate( [ { $lookup: { from: "comments", localField: "_id", foreignField: "articleId", as: ...
分类:
数据库 时间:
2021-06-07 20:35:52
阅读次数:
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