码迷,mamicode.com
首页 >  
搜索关键字:file_path    ( 738个结果
python中读取某个路径文件夹下所有文件--listdir()
描述: 当需要读取某个文件下的所有文件时,可以使用listdir()函数,使用该函数之前,需导入模块:from os import listdir 语法: listdir('file path/file name') 参数: file path:文件夹路径,可以是相对路径或绝对路径 file nam ...
分类:编程语言   时间:2017-07-01 10:53:43    阅读次数:446
RootFramework框架实现文件读取和上传以及使用JavaScript获取fields中的值
1、项目中使用的相对路径需要转换成绝对路径,(Python方法实现 os.path.abspath('path')) 2、choose file [locators,file_path](传入参数文件存放的fields 以及传入的文件路径) 3、获取输入框中的值 :execute JavaScrip ...
分类:编程语言   时间:2017-06-30 15:35:44    阅读次数:239
脚本 sh 和 ./ 的区别
如果.不在PATH里面,要执行当前目录下的可执行文件,使用全路径: ./executable-file PATH是环境变量,如果将当前目录“./”添加到环境变量中,那么也可以不用“./”,直接输入当前目录下有可执行权限的可执行文件就可以运行了 如果要执行一个sh脚本,不管那个脚本有没有可执行权限,都 ...
分类:其他好文   时间:2017-06-28 11:56:48    阅读次数:174
文件增删改查(加日志记录)、有关文件小程序
1. 1 1,Alex Li,22,13651054608,IT,2013-04-01 2 2,Jack Wang,30,13304320533,HR,2015-05-03 3 3,Rain Liu,25,1383235322,Saies,2016-04-22 4 4,Mack Cao,40,135 ...
分类:其他好文   时间:2017-06-24 17:25:45    阅读次数:366
logstash收集MySQL慢查询日志
#此处以收集mysql慢查询日志为准,根据文件名不同添加不同的字段值input { file { path => "/data/order-slave-slow.log" type => "mysql-slow-log" start_position => "beginning" codec => ... ...
分类:数据库   时间:2017-06-23 18:15:07    阅读次数:386
PHP 弹出文件下载 原理 代码
/** * @author default7<default7@zbphp.com> * @description 演示PHP弹出下载的原理 * * @param $file_name */ function downFile($file_name) { $file_path = "/tmp/" . ...
分类:Web程序   时间:2017-06-18 15:47:51    阅读次数:166
[LintCode] System Longest File Path
Suppose we abstract our file system by a string in the following manner: The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents: The director ...
分类:其他好文   时间:2017-06-17 10:03:46    阅读次数:206
jsp文件系统
属性方法获取根目录request.getServletContext().getRealPath("/");创建目录File file= new File(path); if(!file.exists()){ file.mkdirs(); } 写文件File file =new File("文件路径... ...
分类:Web程序   时间:2017-06-14 22:23:00    阅读次数:175
WCF: Generate Proxy Class and Configuration file for Client
1. please keep WCF service running 2. and two ways to achive this a. add Service Reference (will not introduce this since there're so many resources o ...
分类:其他好文   时间:2017-06-14 02:23:57    阅读次数:328
pycharm配置pep8
可以使用外部工具,来检查代码是否符合pep8的风格: 1)下载 autopep8,这个简单,pip3 install pep8 2)在pychamr中配置: A)file-setting。。-tools--external tools,点击加号: B) 做如下配置: Name:Autopep8(可以 ...
分类:其他好文   时间:2017-06-13 11:23:54    阅读次数:115
738条   上一页 1 ... 36 37 38 39 40 ... 74 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!