📜  python 32位二进制数 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:07.350000             🧑  作者: Mango

代码示例1
>>> '{:032b}'.format(100)
'00000000000000000000000001100100'
>>> '{:032b}'.format(8589934591)
'111111111111111111111111111111111'
>>> '{:032b}'.format(8589934591 + 1)
'1000000000000000000000000000000000'    # N.B. this is 33 digits long