摘要: #获取bit位 def get_bit(num): bit0 = num >> 0 & 0x1 bit1 = num >> 1 & 0x1 bit2 = num >> 2 & 0x1 bit3 = num >> 3 & 0x1 bit4 = num >> 4 & 0x1 bit5 = num >> 阅读全文
posted @ 2022-10-08 17:05 荒诞的X 阅读(2300) 评论(0) 推荐(0) 编辑