python convert hex to binary ; 1. my_hexdata = "1a" ; 2. ; 3. scale = 16 # equal to hexadecimal ; 4. ; 5. bin(int(my_hexdata, scale))[2:].zfill(len(my_hexdata)*4).
確定! 回上一頁