parity

fun Int.parity(): Int

调整奇偶校验位: 将数据转化为二进制之后计算数据中 1 的个数 如果是偶数个的 1 则将数据最后一位取反