'.' 默认匹配除\n之外的任意一个字符,若指定flag DOTALL,则匹配任意字符,包括换行 '^' 匹配字符开头,若指定flags MULTILINE,这种也可以匹配上(r"^a","\nabc\neee",flags=re.MULTILINE) '$' 匹配字符结尾,或e.search("f ...
分类:
编程语言 时间:
2020-03-07 16:14:46
阅读次数:
84
??Blog : "《LeetCode 208.实现Trie(字典树) JavaScript》" 实现一个 Trie (前缀树),包含 insert, search, 和 startsWith 这三个操作。 说明: 你可以假设所有的输入都是由小写字母 a z 构成的。 保证所有输入均为非空字符串。 ...
分类:
编程语言 时间:
2020-03-07 11:21:10
阅读次数:
72
根据关键字搜软件包 apt cache search package_name 根据关键字jo 来搜索软件包名 apt cache search "jo " 根据命令搜软件包 默认没有安装该工具,需手动安装 apt get install apt file 语法: apt file search [ ...
分类:
系统相关 时间:
2020-03-07 09:51:06
阅读次数:
100
public class GUIStyleViewer : EditorWindow { Vector2 scrollPosition = new Vector2(0, 0); string search = ""; GUIStyle textStyle; private static GUISty ...
分类:
编程语言 时间:
2020-03-07 09:47:52
阅读次数:
88
[00:03.23]Hello[00:04.29]演唱:阿杜[00:06.11][00:27.24]I've been alone with you inside my mind[00:34.32]And in my dreams I've kissed [00:36.89]your lips a ...
分类:
其他好文 时间:
2020-03-06 21:54:16
阅读次数:
72
题目: https://leetcode-cn.com/problems/legal-binary-search-tree-lcci/ 实现一个函数,检查一棵二叉树是否为二叉搜索树。 示例 1:输入: 2 / \ 1 3输出: true示例 2:输入: 5 / \ 1 4 / \ 3 6输出: fa ...
分类:
其他好文 时间:
2020-03-06 17:22:32
阅读次数:
62
symmetric pivot 让交换的次数减少,排序Q对角线元素 reduction gauss transition --lazy 只降相关permutation需要的元素 permutation --greedy 交换最大差值的相邻对角线元素 search --shrink 随着搜索进行,减小 ...
分类:
编程语言 时间:
2020-03-06 15:44:39
阅读次数:
96
第一步:打开 folder文件夹 第二步: command + shift + g 搜索,输入 /private/etc/hosts 找到 hosts 文件 第三步:编辑修改,输入 http://github.com 204.232.175.94 http://gist.github.com 107 ...
分类:
系统相关 时间:
2020-03-06 11:12:23
阅读次数:
218
一个项目开发到维护有五年时间了。 今天在项目中加入了一段代码后,软件启动后,窗口显示不出来了。 加入的代码: HMODULE hDll_kernel32 = LoadLibrary("kernel32.dll"); // 加载 kernel32.dll if(hDll_kernel32) { FAR ...
分类:
其他好文 时间:
2020-03-06 10:58:53
阅读次数:
199
参见:https://blog.gmem.cc/cygwin-faq 比如:apt-cyg install nano apt-cyg search 7z 这样安装apt-cyg: git clone https://github.com/transcode-open/apt-cyg.git chmo ...