Use the int function with a base of 2 to read a binary value as an integer. n = int('01010101', 2). Python 2 uses strings to handle binary ...
確定! 回上一頁