码迷,mamicode.com
首页 >  
搜索关键字:filepath    ( 875个结果
Linux source命令(转)
Linux source命令: 通常用法:source filepath 或 . filepath 功能:使当前shell读入路径为filepath的shell文件并依次执行文件中的所有语句,通常用于重新执行刚修改的初始化文件,使之立即生效,而不必注销并重新登录。例如,当我们修改了/etc/prof ...
分类:系统相关   时间:2018-06-07 14:33:55    阅读次数:168
小程序上传图片到七牛
小程序上传图片非常简单,利用好2个API: "wx.chooseImage" "wx.uploadFile" 注意点: header头要写 token 一定要去获取七牛的token filePath是单个图片就写下标0,如果多图片就用for循环吧,不过上个函数wx.chooseImage.count ...
分类:Web程序   时间:2018-05-31 19:17:00    阅读次数:751
Matlab 读取 ROS bag 文件指定消息数据
近期在接触Ros的时候遇到了一些问题,如何将rosbag中的信息提取出来进行进一步处理呢? 如三维点位置信息,视频信息(如果有的话)等等。 我采用的是MATLAB 读取bag信息 [cpp] view plain copy filepath=fullfile('F:','Leon Files','M ...
分类:其他好文   时间:2018-05-25 22:48:21    阅读次数:775
golang 获取当前可执行程序的当前路径
import ( "errors" // "fmt" "os" "os/exec" "path/filepath" "runtime" "strings" ) func GetCurrentPath() (string, error) { file, err := exec.LookPath(os.... ...
分类:其他好文   时间:2018-05-23 11:50:38    阅读次数:242
C#IO流文件操作
文件流 创建文件流 读写文件的第一步就是创建文件流,流是一个用于数据传输的个对象,它是FileStream类型,在创建一个文件流是需要在他的构造中指定参数 语法: FileStream 文件流对象=new FileStream( String filePath,FileMode fileMode); ...
分类:Windows程序   时间:2018-05-18 14:22:41    阅读次数:203
Git 取消跟踪已版本控制的文件(亲测可行)
git 不再追踪文件改动 git update-index --assume-unchanged filePath git 恢复追踪文件改动 git update-index —no-assume-unchanged filePath git 删除被管理的文件 git rm —cached file ...
分类:其他好文   时间:2018-05-16 18:34:37    阅读次数:150
筛选最新生成的报告——sort
筛选出最新报告发送,返回报告路径import os def filePath(path): return os.path.join(os.path.abspath(os.path.dirname(os.path.dirname(__file__))),path) #所有报告都放在report下面de ...
分类:其他好文   时间:2018-05-12 15:14:44    阅读次数:160
获取配置文件信息——configparser
配置文件host.int格式如下: [host]product=xxxxxxxxxxtest=xxxxxxxxxx python 3.x代码如下: import os,configparser def filePath(path): return os.path.join(os.path.abspa ...
分类:其他好文   时间:2018-05-12 15:08:22    阅读次数:147
linux 中文乱码解决办法
就是从数据库中取出来时,在存入linux的文件里时,在字符流时制定编码格式。代码如下: FileOutputStream fos=new FileOutputStream(new File(filePath),true); Writer ut=new OutputStreamWriter(fos," ...
分类:系统相关   时间:2018-05-05 11:10:46    阅读次数:214
php unzip
// $zip = new ZipArchive; // $res = $zip->open($filePath); // if ($res === TRUE) { // \Log::info("unzip success"); // //解压缩到test文件夹 // ... ...
分类:Web程序   时间:2018-04-24 17:51:34    阅读次数:251
875条   上一页 1 ... 22 23 24 25 26 ... 88 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!