假设我们有一个 64-bits 消极的 int
64-bits
int
x = -9223372036854775808 # in binary: 1000 0000 ... [48 zeroes more] ... 0000 0000
x = x & 0x0FFFFFFFFFFFFFFFF # in binary: 0 1000 0000 ... [48 zeroes more] ... 0000 0000
0 在前面 现在Python认为它是一个 positive int .
0
positive int
这是不是意味着我现在和 65-bits 不 适合Python的 64-bits word 或者我把数字转换成无符号表示,所以它就是一个正数 64位 符合Python的 ?
65-bits
64-bits word
64位