Python: sorted() vs list.sort()
Summary
Summary
1. 求 min/max sub-array 或 sub-string 问题的套路
参考 Quicksort with Python
参考:
Question: Find the
Looks like I’ve been wrong for years… maybe because I am too familiar with the SQL-style groupby operation.
今天才发现如果是两个 objects 做 and 或者 or 的时候,返回的不是 boolean 而是 object。
参考 Stack Overflow: How does the bitwise complement operator (~ tilde) work? Answer by Anthony。