布隆过滤器 BloomFilter
2019-02-28
用 k 个独立散列函数把元素映射到 m 位的位数组上,实现高效的'可能存在 / 一定不存在'判断,附 Python + Redis 实现。
1214 字
|
6 分钟
python的技巧和方法
2019-02-28
l例如:获取当前文件路径。 os版: python print(os.path.dirname(file)) print(os.getcwd()) pathlib版: python print(pathlib.Path.…
1934 字
|
10 分钟
redis订阅python代码
2019-02-28
def listen(self): for item in self.crawlseeds.listen(): if item'type' != 'message': continue meta = str(item'd…
74 字
|
1 分钟
哈希算法-加密-编码
2019-02-28
哈希算法 - 哈希摘要 - 数字签名 - 防篡改/保护敏感信息 哈希算法是一个单向运算的函数(单向哈希函数) 通过哈希算法可以将对象计算出哈希摘要但是哈希摘要无法还原成原来的对
435 字
|
2 分钟






