def sum_file_crc16(file_name):
    '\n    计算文件校验码，每次计算4096字节\n    @param file_name:文件名\n    @return:校验码\n    '
    crc = 0
    with open(file_name, 'rb') as f:
        crc = sum_crc16(crc, f.read())
    return crc
计算文件校验码，每次计算4096字节
@param file_name:文件名
@return:校验码
def sum_file_crc16(file_name):
    '\n    计算文件校验码，每次计算4096字节\n    @param file_name:文件名\n    @return:校验码\n    '
    crc = 0
    with open(file_name, 'rb') as f:
        crc = sum_crc16(crc, f.read())
    return crc