github地址:https://github.com/uber-go/zap Log a message and 10 fields: Log a message with a logger that already has 10 fields of context: Log a static s ...
分类:
其他好文 时间:
2018-04-25 13:12:34
阅读次数:
304
Each row in /proc/$PID/maps describes a region of contiguous virtual memory in a process or thread. Each row has the following fields: address - This ...
分类:
其他好文 时间:
2018-04-20 00:16:57
阅读次数:
192
Farm Tour 题目描述 When FJ's friends visit him on the farm, he likes to show them around. His farm comprises N (1 <= N <= 1000) fields numbered 1..N, the ...
分类:
其他好文 时间:
2018-04-18 20:12:52
阅读次数:
143
在drawable文件夹中创建一个.xml文件 ...
分类:
其他好文 时间:
2018-04-17 19:40:07
阅读次数:
207
题目:http://poj.org/problem?id=2226 把行连通块作为左部点,列连通块作为右部点,行列连通块有相交的格子就连边; 则问题转化为求最小点覆盖,即最大匹配。 代码如下: ...
分类:
其他好文 时间:
2018-04-17 19:40:00
阅读次数:
149
题目:http://poj.org/problem?id=2226 巧妙建图:以行或列上的联通块作为点,每个泥格子作为边,求最小点覆盖就可以了! 于是用匈牙利算法找最大匹配。注意要对右部点记录每一个左部点的vis! ...
分类:
其他好文 时间:
2018-04-17 19:37:03
阅读次数:
154
有 N 个与坐标轴对齐的矩形, 其中 N > 0, 判断它们是否能精确地覆盖一个矩形区域。每个矩形用左下角的点和右上角的点的坐标来表示。例如, 一个单位正方形可以表示为 [1,1,2,2]。 ( 左下角的点的坐标为 (1, 1) 以及右上角的点的坐标为 (2, 2) )。 详见:https://le ...
分类:
其他好文 时间:
2018-04-15 22:55:41
阅读次数:
236
题目链接: https://vjudge.net/problem/POJ-2226 题目大意: 用宽度为1长度不限的木板将水洼‘*’盖住而不盖住草‘.' Sample Input Sample Output 解题思路: 这道题的构图方法十分巧妙,如果有连续的水洼,假设是横排的,那么这几个连续的水洼可 ...
分类:
其他好文 时间:
2018-04-15 12:09:58
阅读次数:
182
一、wtforms源码流程 1、实例化流程分析 # 源码流程 1. 执行type的 __call__ 方法,读取字段到静态字段 cls._unbound_fields 中; meta类读取到cls._wtforms_meta中 2. 执行构造方法 a. 循环cls._unbound_fields中的 ...
分类:
其他好文 时间:
2018-04-13 11:12:51
阅读次数:
327
原文:http://docs.pythontab.com/interpy/collections/collections/ 容器(Collections) Python附带一个模块,它包含许多容器数据类型,名字叫作collections。我们将讨论它的作用和用法。 我们将讨论的是: defaultd ...
分类:
编程语言 时间:
2018-04-12 15:26:57
阅读次数:
147