// map filter some forEach every find findIndex reduce let arr = [7,4,5,6,2] //返回一个新数组, 长度不变。[7, 4, 5, 6, false] let a0 = arr.map( v => v > 3 && v) // ...
分类:
编程语言 时间:
2020-05-12 20:46:14
阅读次数:
111
No match for argument: mysql-community-server Error: Unable to find a match: mysql-community-server 1.centos8.0上安装mysql服务时,使用以下命令报错: yum install mysql ...
分类:
数据库 时间:
2020-05-12 16:46:56
阅读次数:
188
1. 查看页面元素 打开页面,按‘f12’ 可看到源码,然后选择需定位的元素,会高亮显示 2. 单数定位方式 1)driver.find_element_by_id() 2)driver.find_element_by_name() 3)driver,find_element_by_class_na ...
分类:
其他好文 时间:
2020-05-12 16:41:32
阅读次数:
55
Linux 常用命令整理 命令传值 arg=$(command) 返回目录 cd ..返回上层目录 cd 返回上次目录 内存占用 top 删除文件 1. 删除目录下n天前的文件 其中 find 用于筛选 访问时间(atime)、修改时间(mtime)、状态改动时间(ctime) +1 大于一天 也可 ...
分类:
系统相关 时间:
2020-05-12 16:34:43
阅读次数:
80
找出数组中重复的数字。 在一个长度为 n 的数组 nums 里的所有数字都在 0~n 1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也不知道每个数字重复了几次。请找出数组中任意一个重复的数字。 示例 1: 限制: 2 <= n <= 100000 思路 将整个数组作为哈希表,将数字 ...
分类:
编程语言 时间:
2020-05-11 23:58:10
阅读次数:
106
Xor Sum AtCoder 2272 Time limit : 2sec / Memory limit : 256MB Score : 600 points Problem Statement You are given a positive integer N. Find the number ...
分类:
其他好文 时间:
2020-05-11 19:09:03
阅读次数:
87
ReactDOM findeDOMNode 语法:DOMElement findDOMNode(ReactComponent component)描述:获取改组件实例相对应的DOM节点 案例: import React, { Component } from 'react'; import Reac ...
分类:
其他好文 时间:
2020-05-11 18:56:46
阅读次数:
59
#全盘搜索木马文件,并记录在/tmp/php.txt文件内 find / -name "*.php" |xargs egrep "phpspy|c99sh|milw0rm|eval(gunerpress|eval(base64_decoolcode|spider_bc))" > /tmp/php.t ...
分类:
系统相关 时间:
2020-05-11 13:42:30
阅读次数:
103
本文档格式如下,命令说明在命令的上一行,尝试使用 Ctrl+f 组合键快速在页面内搜索。 命令说明 命令 参数起始目录:查找文件的起始目录。实例# 当前目录搜索所有文件,文件内容 包含 “140.206.111.111” 的内容find . -type f -name "*" | xargs gre ...
分类:
系统相关 时间:
2020-05-11 13:22:53
阅读次数:
72
我的spring boot study之mongodb的应用 1.首先编写pom文件,加入包依赖 2.编写代码 2.1 编写实体entity.User 注:@Document注解是mongodb带的,用于标注该类对应的哪个集合 2.2 添加单测文件com.example.mongodb.UserTe ...
分类:
数据库 时间:
2020-05-11 13:07:54
阅读次数:
64