
functools in Python
Introduction wraps cmp_to_key partial total_ordering reduce Introduction functools like itertool is very useful, but we pay little attention to it. It contains useful tools in everyday...

Introduction wraps cmp_to_key partial total_ordering reduce Introduction functools like itertool is very useful, but we pay little attention to it. It contains useful tools in everyday...

Introduction abc Module collections.abc Module Animal example AwesomeSequence Recommended reading: Introduction abc is short for Abstract Base Class. Usually we use it to create a base...

Introduction Convert to and from numbers Convert a number into a string Convert a number from a string Construct a string Manipulate a string Convert case ...

Introduction Auto TOC Highlight Anchor Comment Introduction More and more people are using Github pages as their personal website. Github pages use Jekyll to render the site. This blog wi...

Property Descriptor Recently in my project, I need to dynamically add property to an instance. It is easy that any class can support it. class AwesomeClass: def __init__(self): ""...

Quick-sort is one of the greatest inventions. Most of the time, its time complexity is O(nlogn). However, when the input array contains lots of duplicates, the performance will drop. For example, ...

Introduction Common Iterator Wrapper Inserters IO related Common functions Introduction Iterator is an essential part in STL. We can use iterator to: traverse t...

无意中发现一个网址介绍设计模式,觉得介绍的特别清楚,而且每种模式用语言描述得比较直观。 Refactoring.Guru 首先介绍了比较经典的 SOLID 原则: Single Responsibility Open / Close Liskov Substitution Interface Segregation Dependency Inversion ...

翻译自:Approach a System Design Interview 所有权归原作者所有。仅供参考学习 本博客会教你如何在短时间内系统地处理系统设计的面试。总所周知,这个主题十分宽泛,要想成为 这方面的专家,需要持续阅读相关主题、书以及实践。 我会撰写一系列的博客来理清系统设计面试。 请记住:除非你声明你知道设计大的系统,否则不要害怕系统设计面试问题,因为你的面试官 可能不会...

Introduction 主要的类和函数 Redis, StrictRedis Monitor Pubsub, PubSubWorkerThread Pipeline Script BitFieldOperation Introduction 本文主要介绍 Redis 的 Pyth...