转载:http://www.xue163.com/124/6/1243914.html 1. 目录(Directory)与文件夹(Folder)的区别 目录是DOS时代的产物,DOS文件系统是以目录树的形式将文件组织起来的,文件全部包含在目录里。任何一个文件的全名,由“目录名+文件名”两部分组成,目...
#!\usr\bin\env python# -*- coding: utf-8 -*-import osdef printFiles(folder): #获取当前路径下所有文件 fileList = os.listdir(folder) for file in fileList: # 如果不是是....
分类:
编程语言 时间:
2015-02-05 20:18:43
阅读次数:
144
原文add jars和add external jars有什么区别?add jars和add external jars有什么区别?add external jars = 增加工程外部的包add jars = 增加工程内包add library = 增加一个库add class folder = 增...
分类:
编程语言 时间:
2015-02-04 21:37:19
阅读次数:
335
关于RapidJSON
rapidjson项目地址:https://github.com/miloyip/rapidjson
项目下载完成后,打开readme.md文件,查看项目说明。
RapidJSON is a header-only C++ library. Just copy the `include/rapidjson` folder to system or project's include path.
RapidJSON是一个只有头文件的C++ JSON库,只需要拷贝“include/...
分类:
Windows程序 时间:
2015-02-03 11:15:29
阅读次数:
1301
安装这个additions的过程,基本上可以参照http://gamblisfx.com/how-to-install-virtualbox-guest-additions-on-fedora-21/拷贝一份过来就是,1. 先更新内核yum update kernel*2. 重启reboot3. 安...
分类:
其他好文 时间:
2015-02-01 23:06:43
阅读次数:
257
出于效率等原因,最近将web框架由martini切换为了beego,其他地方都很平顺,只是两个框架的handler签名不一致,需要修改,所以耗时较长,这是预计到的。但是有一个地方没有预计到,也耗费了较多时间,那就是静态文件的服务。 用过martini的tx都知道,在mairtini中如果我们设...
分类:
其他好文 时间:
2015-01-30 15:05:42
阅读次数:
146
代码如下: 1 var folder_exists = fs.existsSync('./cache'); 2 3 if(folder_exists == true) 4 { 5 var dirList = fs.readdirSync('./cache'); 6 7 dirLi...
分类:
Web程序 时间:
2015-01-28 19:23:50
阅读次数:
14018
1) Add the filesCopy the files you need to your project folder, and add them to your Xcode project. An overview of the ASIHTTPRequest source files app...
分类:
移动开发 时间:
2015-01-26 11:29:36
阅读次数:
211
今天做一个Android的文件管理器,里面用到非常多的地方用到了getResources。Drawable currentIcon = null;currentIcon = getResources().getDrawable(R.drawable.folder);currentIcon = ge....
分类:
移动开发 时间:
2015-01-26 10:12:27
阅读次数:
188
在windows下使用Vagrant时可以使用samba方式共享文件夹。配置如下: config.vm.synced_folder "./", "/path/to/web/root", type: "smb", smb_username: "user", smb_password: "pass...
分类:
其他好文 时间:
2015-01-23 17:45:29
阅读次数:
221