1、基本操作 1.1 cd (change directory) 格式:cd <路径> 功能:cd指令后面跟一个路径,有于切换到当前用户所在的路径,其中路径可以是绝对路径,也可以是相对路径。 使用示例: cd /system/bin 表示切换到/system/bin路径下 cd logs 表示切换到 ...
分类:
系统相关 时间:
2020-06-08 23:21:53
阅读次数:
89
以百度搜索首页为例,我们要定位到搜索输入框的话,应该如何写呢? 单属性查找 # 1.用 标签名 定位查找 driver.find_element_by_css_selector("input") # 2.用 id 属性定位查找 driver.find_element_by_css_selector( ...
分类:
Web程序 时间:
2020-06-08 20:54:04
阅读次数:
303
1. 判断字符串是否由字母、数字、空格组成 Boolean isNo = "abc".matches("^[a-z0-9A-Z\\s]+$") 2. 判断字符串是否包含浮点数+”未支付“ Boolean isNo = Pattern.compile("\\d+\\.{0,1}\\d+未支付").ma ...
分类:
其他好文 时间:
2020-06-08 14:22:50
阅读次数:
47
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:
其他好文 时间:
2020-06-08 11:06:25
阅读次数:
76
0X01首先我们来了解下这个漏洞的关键函数 preg_replaceCTF的老函数了 preg_replace() 的第一个参数如果存在 /e 模式修饰符,则允许代码执行。 如果没有 /e 修饰符,可以尝试 %00 截断。 正则表达式修正符: 因为$pattern中指定的是要搜索的模式字符串,一般使 ...
分类:
Web程序 时间:
2020-06-07 17:56:40
阅读次数:
81
Mit6.828/6.S081 fall 2019的Lab1是Unix utilities,主要内容为利用xv6的系统调用实现sleep、pingpong、primes、find和xargs等工具。本文对各程序的实现思路及xv6的系统调用流程进行详细介绍。 前言 在实验之前,推荐阅读一下官网LEC1 ...
分类:
其他好文 时间:
2020-06-07 14:41:18
阅读次数:
128
异常 Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'BIGINT'. Cause: java.lang.ClassNotFoundException: Cannot find class: ...
分类:
Web程序 时间:
2020-06-07 12:57:25
阅读次数:
86
找出数组中重复的数字。 在一个长度为 n 的数组 nums 里的所有数字都在 0~n-1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也不知道每个数字重复了几次。请找出数组中任意一个重复的数字。 示例 1: 输入:[2, 3, 1, 0, 2, 5, 3]输出:2 或 3 限制: 2 ...
分类:
编程语言 时间:
2020-06-07 10:59:21
阅读次数:
67
导航 (返回顶部) 1. fd 2. mlocate 2.1 安装mlocate 2.2 手动更新库 2.3 查看配置文件 2.4 使用 2.5 帮助-常用选项 3. grep 3.1 常用选项: 3.2 示例 4. find 1. fd 2. mlocate 2.1 安装mlocate 2.2 手 ...
分类:
系统相关 时间:
2020-06-06 22:01:36
阅读次数:
100
####添加一下代码 $('.x-iframe').eq(i).attr("src",$('.x-iframe').eq(i).attr('src')); 打开xadmin.js文件,添加以上代码到具体问位置。 var url = $(this).children('a').attr('_href' ...
分类:
其他好文 时间:
2020-06-06 21:54:47
阅读次数:
133