使用 位运算 判断 值的二进制 指定位是否为1
先上方法
public static bool HasTag(long bit, int index)
{
return ((bit >> index) & 1) != 0;
} public stat public static bool HasTag(long bit, int index)
{
return ((bit >> index) & 1) != 0;
} public stat