x&-x的值是啥米呢?列入10 二进制位 1010为2 1011则为 1,1000为8,就是一个整数对应的二进制数中1所在最低位的权值。 在树状数组中很有用 转载于:https://www.cnblogs.com/hansongjiang/p/3753465.html