python 获取文件CRC值 crc值在文件改变之前是唯一的 import zlib def crc(fileName): hash = 0 for eachLine in open(fileName, "rb"): hash= zlib.crc32(eachLine, hash) return hash