intspa
將字符串內轉換成十進制整數,字符串內默認爲十進制數。code
>>> int('12345') 12345 >>> int('12345', base=8) 5349 >>> int('12345', 16) 74565 >>> int('1000011', 2) 67