$lines = array_map('str_getcsv', file($filePath));; $result = array(); $headers = null; if (count($lines) > 0) { $headers = $lines[0]; } for($i=1; $i<... ...
分类:
编程语言 时间:
2017-11-06 11:31:04
阅读次数:
151
import csv def get_lines(filepath): with open(filepath) as file_object: lines=set(file_object.readlines()) return lines def new_csv(lines): fileindex=... ...
分类:
编程语言 时间:
2017-10-26 11:37:13
阅读次数:
195
procedure TfrmEngineerImport.btnDownloadClick(Sender: TObject);var vsql, SourceFile, DestFile, filename, filepath: string; DownLoadFile: TFileStream; ...
获取root权限 sudo -i 查看文件列表 ls -a 选择文件夹 cd path 修改文件 vi filepath 按i 开始编辑 esc退出编辑界面 保存退出(wq!) 查看文件less filepath 按q退出 安装软件yum install 软件名 注:centeros7 改变了服务相 ...
分类:
系统相关 时间:
2017-10-17 12:23:59
阅读次数:
156
1、文件上传 pojo中为byte[] 类型,数据库中对应为blob类型。 主要代码: FileInputStream fis = null; fis = new FileInputStream(new File(filePath)); byte[] inputByte = input2byte(f ...
分类:
编程语言 时间:
2017-10-10 11:33:26
阅读次数:
232
filepath=r"Z:\F\第一阶段视频\20170424\vedio\大数据相关数据\csdn.txt"
file=open(filepath,"rb")
savefilepath=r"C:\Users\Tsinghua-yincheng\Desktop\day12up\csdneamil.txt"
savefile=open(savefilepath,"wb")
print("start")
forlineinfile:#遍历数据的每一行
#print(..
分类:
其他好文 时间:
2017-10-04 19:59:05
阅读次数:
142
Button控件获取文件夹: Button打开磁盘文件夹: 1 System.Diagnostics.Process.Start("explorer.exe", FilePath); ...
class UNRARModel: def __init__(self, filepath): self.rar = rarfile.RarFile(filepath) self.infolist = self.rar.infolist() def extral_list(self, selecte... ...
分类:
编程语言 时间:
2017-09-25 22:04:41
阅读次数:
311
NPOI操作 public class NPOIExcel { private string _title; private string _sheetName; private string _filePath; /// <summary> /// 导出到Excel /// </summary> ...
分类:
其他好文 时间:
2017-09-23 20:22:42
阅读次数:
189
using Aspose.Cells; void WriteToExcel(string filePath, List<object[]> datas, string sheetName = "Sheet0") { try { Workbook workBook = new Workbook(); ...