A shift moves every bit of a number by positions: a << k to the left, adding zeros on the right, and a >> k to the right, dropping the rightmost bits. For a whole number , a << k is and a >> k is the quotient a // 2**k.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Shift?
又称: shift (bit shift)