• 低位:k least significant bits;
  • 高位:k most significant bits;

1. 截断保留低位

def _int32(x):
    return int(0xFFFFFFFF & x)
posted on 2016-11-21 12:19  未雨愁眸  阅读(547)  评论(0编辑  收藏  举报