码迷,mamicode.com
首页 >  
搜索关键字:file path    ( 77533个结果
PHP中正则替换函数preg_replace用法笔记
今天应老板的需求,需要将不是我们的页面修改一个链接,用js+iframe应该也能实现,但是我想尝试一下php实现方法。 首先你得先把别人的页面download到你的php中,实现方法可以用curl, file,这里有一篇文章写的不错http://www.11jn.com/phpbb/viewt...
分类:Web程序   时间:2014-05-23 07:15:41    阅读次数:354
python的 for dirpath, dirnames, filenames in os.walk(rs_path):
假设这三个目录三个文件放在rs_path=d:/gmz目录里面。那么要获取所有的文件路径,可以用如下方式for parentpath, dirnames, filenames in os.walk(rs_path): for filename in filenames: print "fileP.....
分类:编程语言   时间:2014-05-23 06:35:00    阅读次数:875
转 Ubuntu Linux 环境变量PATH设置
Ubuntu Linux系统环境变量配置文件:/etc/profile : 在登录时,操作系统定制用户环境时使用的第一个文件 ,此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行。/etc /environment : 在登录时操作系统使用的第二个文件, 系统在读取你自己的prof...
分类:系统相关   时间:2014-05-23 06:24:10    阅读次数:323
中国海域系统源代码
file:///C|/Documentsand Settings/Administrator/桌面/clip_image006.gif f...
分类:其他好文   时间:2014-05-23 04:15:24    阅读次数:578
Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-05-22 16:05:56    阅读次数:239
Add a system call on Ubuntu 13.04(x64) with x86_64
We added a system call to modify idt table, then programed it inmodify_idt.c1. Put our modify_idt.c file in/usr/src/linux-3.10.15/arch/x86/kernel2./us...
分类:其他好文   时间:2014-05-22 15:51:03    阅读次数:269
NSProcessInfo-当前进程信息类
1、NSProcessInfo常用方法: +(NSProcessInfo*)processInfo  //返回当前进程的信息 -(NSArray*)arguments  //以NSString对象数组的形式返回当前进程的参数 -(NSDictionary *)environment  //返回变量/值对词典,以描述当前的环境变量(比如PATH和HOME)及其值 -(int)processI...
分类:其他好文   时间:2014-05-21 17:16:15    阅读次数:229
python实现代码行的统计
最近闲来无事写了一个统计C或者C++代码行数的程序,主要用到了python以及正则表达式 #-*-coding:utf-8 #!/usr/bin/python import re import os import sys '''get the file or dir in one path''' def getfilename(path): if os.path.exi...
分类:编程语言   时间:2014-05-21 15:06:30    阅读次数:379
Android中StatFs获取系统/sdcard存储(剩余空间)大小
package com.orgcent.util; import java.io.File; import android.os.Environment; import android.os.StatFs; public class MemoryStatus { static final int ERROR = -1; /** * 外部存储是否可用 * ...
分类:移动开发   时间:2014-05-21 14:34:23    阅读次数:362
为编写的Windows程序提升权限
1.要求以管理员身份运行     在vs工程属性中,Linker ---> Manifest File---> UAC Execution Level,选择requireAdministrator (/level='requireAdministrator')选项     2.在main函数开始时运行以下函数代码: BOOL WINAPI EnablePriv...
分类:Windows程序   时间:2014-05-21 13:54:20    阅读次数:505
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!