
Operator
screaming
这个作者很懒,什么都没留下…
展开
-
python bitwise and or operator VS logical operator
Bitwise And a & b and_(a, b) Bitwise Exclusive Or a ^ b xor(a, b) Bitwise Inversion ~ a invert(a) Bitwise Or a | b or_(a, b) Exponentiation a **转载 2016-06-02 23:49:01 · 1042 阅读 · 0 评论 -
Sort tuple or multiple field with operator
Starting with Python 2.4, both list.sort() and sorted() added a key parameter to specify a function to be called on each list element prior to making comparisons. For example, here’s a case-insensi转载 2016-06-19 00:00:12 · 477 阅读 · 0 评论