2019-09-03 10:29:36 x & (x - 1) x & (x-1)相当于消除了 x 从右向左数遇到的第一个 1。 来源:https://www.cnblogs.com/TIMHY/p/11451522.html 标签 位运算