获取字符串的CRC32校验获取字符串中的文件名(如果是文件路径的话) ```kotlin /** 获取String的CRC校验码 */ fun String.getCRC32():String{ val crc = CRC32() crc.update(toByteArray()) return String.format(“%08X”, crc.value) } fun String.fileName():String{ return File(this).name } ```