最近发现一个能够任意生成各种数据的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
                             
                         
                    
                        
                            
                            
                                
                    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
                             
                         
                    
                        
                            
                            
                                基于BOW的图像检索 一,图像检索概述 矢量空间模型 K-means算法 Bag of features原理 二,python实现过程 代码 结果分析 一,图像检索概述 基于文本的图像检索方法始于上世纪70年代,它利用文本标注的方式对图像中的内容进行描述,从而为每幅图像形成描述这幅图像内容的关键词, ...
                            
                            
                                分类:
其他好文   时间:
2021-06-07 20:00:02   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    python requests做接口自动化的时候,有get ,post等请求方法, 那么我们的请求体的参数书写的时候有三种格式(xml的暂时没碰到,就不计算在内) params,data,json。 什么情况下使用这三种格式呢? 其实以前我在使用jmeter做接口测试的时候,经常碰到不同的请求体格式 ...
                            
                            
                                分类:
编程语言   时间:
2021-06-07 19:58:09   
                                阅读次数:
0