python 将16进制转化为2进制

>>> x='123abc'
>>> b=bin(int(x,16))[2:]
>>> print(b)
100100011101010111100

原文地址:https://www.cnblogs.com/sea-stream/p/10315063.html