一、认识etcd 1.1 etcd 概念 从哪里说起呢?官网第一个页面,有那么一句话: "A distributed, reliable key-value store for the most critical data of a distributed system" 即 etcd 是一个分布式 ...
分类:
其他好文 时间:
2020-03-23 18:56:52
阅读次数:
132
数据库事务、事务隔离级别以及锁机制详解 转自 https://www.cnblogs.com/jieerma666/p/10805578.html 以下主要以MySQL(InnoDB引擎)数据库为讨论背景,纯属个人学习总结,不对的地方还请指出! 什么是事务? 事务是作为一个逻辑单元执行的一系列操作, ...
分类:
其他好文 时间:
2020-03-22 18:07:19
阅读次数:
69
I have seen that the most difference between an original BMW ICOM A2 and a clone is that the original has wifi capability, whereas the clone does not. ...
分类:
其他好文 时间:
2020-03-19 20:09:59
阅读次数:
113
Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given s ...
分类:
其他好文 时间:
2020-03-14 21:56:52
阅读次数:
69
Traceback (most recent call last): File "F:\Python3\python\lib\site-packages\pip\_vendor\urllib3\response.py", line 302, in _error_catcher yield File ...
分类:
其他好文 时间:
2020-03-14 01:08:32
阅读次数:
90
Given a binary tree root, a ZigZag path for a binary tree is defined as follow: Choose any node in the binary tree and a direction (right or left). If ...
分类:
其他好文 时间:
2020-03-12 09:26:04
阅读次数:
76
题目:传送门 题意:有一个多边形的岛被海环绕着,给你岛的节点,问你岛上的点到离它最近的海的距离最大是多少。 思路: 这题实际上就是求,多边形的核的最大的内切圆的半径。 求多边形内核用半平面交即可,关键是求最大内切圆。 我们可以让多边形的每条边向里移动 x 个单位,判断是否存在内核。 我们可以二分这个 ...
分类:
其他好文 时间:
2020-03-10 20:19:06
阅读次数:
56
1 """ 2 Given a non-empty array of digits representing a non-negative integer, plus one to the integer. 3 The digits are stored such that the most sig ...
分类:
其他好文 时间:
2020-03-06 13:09:03
阅读次数:
61
一、object类的源码 python版本:3.8 class object: """ The most base type """ # del obj.xxx或delattr(obj,'xxx')时被调用,删除对象中的一个属性 def __delattr__(self, *args, **kwar ...
分类:
编程语言 时间:
2020-03-06 01:54:03
阅读次数:
86
要理解序列样式,理解集合很重要。 集合和序列样式的概念并行工作。 YAML中的集合以适当的序列样式表示。如果要引用正确的标签排序,请始终参考集合。 YAML中的集合由数组中表示的从零开始的连续整数编制索引。 序列样式的重点始于集合。 示例 假设要将宇宙中行星的数量视为可以作为集合创建的序列。 以下代 ...
分类:
其他好文 时间:
2020-03-06 00:59:28
阅读次数:
60