📜  py 将二进制转换为 int - Python 代码示例

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

代码示例1
# Convert integer to binary
>>> bin(3)
'0b11'

# Convert binary to integer
>>> int(0b11)
3