码迷,mamicode.com
首页 >  
搜索关键字:direct path write temp    ( 55479个结果)
Android常用系统Uri
就Android平台而言,URI主要分三个部分:scheme, authority and path。其中authority又分为host和port。格式如下:scheme://host:port/path举个实际的例子:content://com.example.project:200/folde...
分类:移动开发   时间:2014-10-08 17:24:05    阅读次数:226
Ruby——关于require与require_relative
require跟require_relative都是Kernel的方法。 但是两者用起来还是有区别的。 requrie filename 1)如果filename是一个相对路径,则会在$LAOD_PATH($:)中去寻找 $LOAD_PATH.unshift(File.dirname(__FILE__)) unless $LOAD_PATH.include?(File.dirnam...
分类:其他好文   时间:2014-10-08 17:03:15    阅读次数:231
shell中if语句的使用
#!/bin/sh#根据输入的数字进行正负数判断。path=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binexportPATHecho"请输入数字\n"readshuziif[$shuzi-ge0];thenecho"您输入的是正数"elseecho"您输入的是负数"fi注意事项:1、if的格式,中括号中是这样的:[..
分类:其他好文   时间:2014-10-08 16:26:15    阅读次数:137
linux find grep 查找命令
原文:fhqdddddd.blog.163.com/blog/static/186991542012417105729415/find 1.作用find命令的作用是在目录中搜索文件,它的使用权限是所有用户。2.格式find [path][options][expression]path指定目录路径,...
分类:系统相关   时间:2014-10-08 15:27:55    阅读次数:179
MATLAB批量修改图片名称
申明:转载请注明出处。 设在“D:\UserDesktop\pic\”目录下有很多张格式为jpg照片,命名不规则,如图。 现在用MATLAB批量修改所有图片的命名格式,改为1.jpg,2.jpg,....1 path = 'D:\UserDesktop\pic\';2 D = dir([...
分类:其他好文   时间:2014-10-08 15:16:25    阅读次数:687
PHP常用文件操作函数
1. basename()返回路径的文件名部分$path='C:\AppServ\www\test\test.php';echo basename($path);//结果:test.php2. dirname()返回路径的目录部分$path='C:\AppServ\www\test\test.php...
分类:Web程序   时间:2014-10-08 14:23:05    阅读次数:252
svn 插件安装
方法一:link安装  1、从官网下载site-1.6.18.zip文件。 2、从中解压出features与 plugins文件夹,复制到D:\MyEclipse\myPlugin\svn里面,其它的*.xml文件不要。  3、在 D:\MyEclipse\MyEclipse8.6\dropins下新建文件svn.link,内容是:path=D:\\MyEclipse\\myPlugin\\...
分类:其他好文   时间:2014-10-08 13:29:05    阅读次数:150
python os.listdir 扩展显示多级的listdirs
#!?/usr/bin/python ‘‘‘ show?dirs ‘‘‘? import?os #Get?all?files?and?directories def?get_cur_list(path): ????cur_files?=?os.listdir(path) ????all_files?=?[] ????for?fil...
分类:编程语言   时间:2014-10-08 13:16:05    阅读次数:197
matrix travers
Write a code to read and write a matrix in below given way.Note : no. indicates the sequence here.I/P1 2 34 5 67 8 9O/P 11 4 72 5 83 6 9for(i=0;i<row;...
分类:其他好文   时间:2014-10-08 08:09:24    阅读次数:194
日期天气的js应用
<divclass="date"><span><scripttype="text/javascript">document.write(newDate().getFullYear()+‘年‘+(newDate().getMonth()+1)+‘月‘+newDate().getDate()+‘日‘)</script></span><span><scripttype="text/javascript">document.wr..
分类:Web程序   时间:2014-10-08 02:01:35    阅读次数:468
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!