01. 查找文件 find 命令功能非常强大,通常用来在 特定的目录下 搜索 符合条件的文件 | 序号 | 命令 | 作用 | | : | : | : | | 01 | find [路径] name " .py" | 查找指定路径下拓展名是 .py 的文件,包括子目录 | 如果省略路径,表示在当前文 ...
分类:
系统相关 时间:
2020-04-20 11:57:56
阅读次数:
81
Problem : Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary repr ...
分类:
其他好文 时间:
2020-04-20 11:50:44
阅读次数:
65
关于查找更详细的内容,参见《shell编程和Unix命令》 1. find命令 find命令的一般形式: 1.1 -name 按照文件名查找。最常用的用法。例如: 在当前目录及子目录查找所有txt文件并打印出来,可以用: find . -name "*.txt" -print 1.2 使用exec来 ...
分类:
系统相关 时间:
2020-04-20 11:41:48
阅读次数:
70
初窥 todo: [ ] 添加音乐到收藏(最近)列表 [ ] 歌词滚动 从一个hello world开始 微信开发者工具生成 目录如下: . |-- app.js |-- app.json |-- app.wxss |-- pages | |-- index # 主页 | | |-- index.j ...
分类:
微信 时间:
2020-04-19 15:03:35
阅读次数:
100
Python实现集合Set Python的集合set原理 ...
分类:
编程语言 时间:
2020-04-19 14:56:31
阅读次数:
66
// 二维数组查找#include "stdafx.h"using namespace std;#include <string>#include <vector>class Solution {public: bool Find(int target, vector<vector<int> > a ...
分类:
编程语言 时间:
2020-04-19 14:55:49
阅读次数:
39
Python实现队列 单链表实现队列 循环双端链表实现队列 数组实现队列 ...
分类:
编程语言 时间:
2020-04-19 14:50:21
阅读次数:
61
1.对basepage模块的改造 1)封装查找元素方法 def find(self, by, locator=None): # *by意思是传递多个位置参数,如果传递的是一个元组的话,就用前面的,locator注意默认等于None return self.driver.find_elements(* ...
分类:
移动开发 时间:
2020-04-19 14:39:09
阅读次数:
75
1.map(映射)、multimap(多映射) 2.红黑树(数据结构) 3.1)insert:4种方法 2)count和find 3)erase:3种方法 注意:不能通过find进行修改! #include<iostream> #include<map> #include<string> using ...
分类:
其他好文 时间:
2020-04-19 12:56:43
阅读次数:
50
题意:给出一棵树,要求给树上的每条边赋权值,使得任意两个叶子节点的路径上所有权值异或之后为0,边数n范围为[3,1e5],求使用的不同权值数的最小值和最大值。 题解: 任取一个叶子节点为树根建树。则题意可转化为 首先考虑最小值 由异或的性质(a^b^b=a,总存在c使得对任意a,b有a^b^c=0) ...
分类:
其他好文 时间:
2020-04-19 10:57:12
阅读次数:
65