码迷,mamicode.com
首页 >  
搜索关键字:filepath    ( 875个结果
PHP csv文件内容转成数组/Json
$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
20171026python读取txt写入csv
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
delphi通过url下载文件
procedure TfrmEngineerImport.btnDownloadClick(Sender: TObject);var vsql, SourceFile, DestFile, filename, filepath: string; DownLoadFile: TFileStream; ...
分类:Windows程序   时间:2017-10-18 18:31:37    阅读次数:237
Linux基本命令
获取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
java blob 文件上传下载
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
c# 通过按钮获取文件夹和打开磁盘文件
Button控件获取文件夹: Button打开磁盘文件夹: 1 System.Diagnostics.Process.Start("explorer.exe", FilePath); ...
分类:Windows程序   时间:2017-09-27 19:10:35    阅读次数:158
python unrar 解压缩
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帮助类
NPOI操作 public class NPOIExcel { private string _title; private string _sheetName; private string _filePath; /// <summary> /// 导出到Excel /// </summary> ...
分类:其他好文   时间:2017-09-23 20:22:42    阅读次数:189
C# 基于Aspose.Cells的数据导出到Excel
using Aspose.Cells; void WriteToExcel(string filePath, List<object[]> datas, string sheetName = "Sheet0") { try { Workbook workBook = new Workbook(); ...
分类:Windows程序   时间:2017-09-15 18:35:21    阅读次数:225
875条   上一页 1 ... 28 29 30 31 32 ... 88 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!