什么是Xpath 官方:XPath 是一门在 XML 文档中查找信息的语言。XPath 用于在 XML 文档中通过元素和属性进行导航 【XPath 使用路径表达式来选取 XML 文档中的节点或者节点集】 Xpath在UI自动化中应用的场景 在Web UI自动化中,其实用Xpath的定位元素的优先级( ...
分类:
其他好文 时间:
2020-06-20 23:47:38
阅读次数:
60
遍历mac系统访达文件时候要注意了,每个文件夹会多出来一个隐藏文件.DS_Store,是用来储存文件夹配置信息的 import os a,*b = os.walk(root_path) # a--> (root_path, children dirnames, children files) fil ...
分类:
系统相关 时间:
2020-06-20 21:07:00
阅读次数:
75
项目url: path('', include(('app01.urls', 'wdc'), namespace='wdc')), 应用url: path('<int:www>/', views.show, name='show'), 视图: def show(request, www): retu ...
分类:
Web程序 时间:
2020-06-20 18:57:31
阅读次数:
80
def get_commands(): """ Returns a dictionary mapping command names to their callback applications. This works by looking for a management.commands pac ...
分类:
其他好文 时间:
2020-06-20 18:37:01
阅读次数:
74
public TreeNode recoverFromPreorder(String S) { Stack<TreeNode> path = new Stack<>(); //构建好栈 //定义一个变量来遍历S int i = 0; //定义一个int变量来确定节点的层数 //先将S转换成char[ ...
分类:
其他好文 时间:
2020-06-20 18:21:29
阅读次数:
42
const path = require('path'); const request = require('request'); const cheerio = require('cheerio'); const fs = require('fs'); let page = 0; const to ...
分类:
Web程序 时间:
2020-06-20 17:12:01
阅读次数:
66
第一步:安装证书 .cer文件双击 第二步:管理员权限打开powershell Add-AppPackage -Path .\BiliBili.UWP_3.9.95.0_x86_x64.appxbundle ...
分类:
移动开发 时间:
2020-06-20 16:58:11
阅读次数:
455
一共三种方式,分别是系统默认、自定义、webjars 一、使用系统默认方式存放静态资源 1.我们都只知道springboot是通过自动配置来实现的,其中静态资源的位置,他也有自己定义,分别是: classpath:/static/ classpath:/public/ classpath:/reso ...
分类:
编程语言 时间:
2020-06-20 16:51:50
阅读次数:
63
import os,os.path directory = input('请输入目录或者文件地址:') def getSzie(path): global size size = 0 if os.path.isfile(path): size1 = os.path.getsize(path) siz ...
分类:
其他好文 时间:
2020-06-20 16:31:27
阅读次数:
57
path = r"C:\Users\wuhao\.keras\datasets\mnist.npz" def load_data(path): with np.load(path) as f: x_train, y_train = f['x_train'], f['y_train'] x_test, ...
分类:
其他好文 时间:
2020-06-20 16:12:54
阅读次数:
89