我只想将base-2二进制数字串转换为int,如下所示:
>>> '11111111'.fromBinaryToInt() 255
有没有办法在Python中执行此操作?
python
python ×1