• 2023-10-30c#实现文件压缩的方法
    //实现一个压缩文件的方法publicstaticvoidCompressFile(stringsourceFilePath,stringzipFilePath){//如果文件没有找到,则报错if(!File.Exists(sourceFilePath)){thrownewFileNotFoundException(sourceFilePath+"文件不存在!");}//
  • 2023-10-30c#实现文件压缩的方法
    //实现一个压缩文件的方法publicstaticvoidCompressFile(stringsourceFilePath,stringzipFilePath){//如果文件没有找到,则报错if(!File.Exists(sourceFilePath)){thrownewFileNotFoundException(sourceFilePath+"文件不存在!");}/
  • 2023-10-09Java Hutool递归解压文件
    importcn.hutool.core.io.FileUtil;importcn.hutool.core.util.ZipUtil;importjava.io.File;importjava.nio.charset.Charset;publicclassRecursiveUnzip{finalstaticFiledestDir=newFile("D:\\python\\newProject\\excel");pub