python crc16 x25 代码: import binascii data='03020200' crc = 0xFFFF data = binascii.unhexlify(data) for pos in data: crc ^= pos for i in range(8)