int r = 10 >> 6; //byte r1 = 1; if ((r &1) == 1) { //为1 }else{ //为0 }
判断2进制 第n位 是否为1 (0)
原文:https://www.cnblogs.com/z45281625/p/12124842.html