import os #获取根目录,递归得到所以txt文件的路径 list_dirs = os.walk(os.curdir) txtfilenames=[] for root, dirs, files in list_dirs: # for d in dirs: # print os.path.jo...
分类:
编程语言 时间:
2014-10-11 00:49:24
阅读次数:
521
注意:图示使用的地址只是假设的,并不是真正的内存地址,只是说明原理上次说到的是修改基本类型的变量,这次来说修改指针变量的值#include void change(int *a){ int temp = 555; a = &temp;}int main(){ int i = 5...
分类:
其他好文 时间:
2014-10-11 00:43:35
阅读次数:
250
#define LOCAL#include#includeusing namespace std;const int maxSize=10;void REV(int R[],int b,int e){ int i=b,j=e,temp; while(i>R[i]; } cin...
分类:
其他好文 时间:
2014-10-11 00:42:44
阅读次数:
203
ab压力测试ab是Apache超文本传输协议(HTTP)的性能测试工具。其设计意图是描绘当前所安装的Apache的执行性能。主要是显示你安装的Apache每秒可以处理多少个请求。 格式:./ab [options] [http://]hostname[:port]/path详细语法:ab [ -A ...
分类:
Web程序 时间:
2014-10-11 00:10:34
阅读次数:
351
from optparse import OptionParser parser = OptionParser()parser.add_option( '-f', '--file', dest='filename', help='write report to FILE', metavar='F.....
分类:
编程语言 时间:
2014-10-10 23:47:45
阅读次数:
319
project 编译问题
1、在项目上右键properties->project Facets->修改右侧的version 保持一致
2、window->preferences->java->Compiler->设置右侧的Compiler compliance level
3、window->preferences->java->Installed JREs...
分类:
编程语言 时间:
2014-10-10 22:42:54
阅读次数:
221
先说说修改基本类型变量的值,比如说int类型,可以直接修改,也可以通过函数修改,看下代码 #include void change(int *a)
{ int temp = 555; a = &temp;
} int main()
{ int i = 5; int j = 55; int *p = ...
分类:
其他好文 时间:
2014-10-10 22:40:14
阅读次数:
238
#!/usr/bin/pythonimportjsonimportpycurlimportcStringIOdefwork_url(ip):buf=cStringIO.StringIO()c=pycurl.Curl()c.setopt(c.URL,"http://%s:8983/solr/collection1/admin/mbeans?stats=true&wt=json&_=1409194287592"%ip)c.setopt(c.WRITEFUNCTION,buf.write)c.per..
分类:
其他好文 时间:
2014-10-10 21:02:54
阅读次数:
183
动态规划class Solution: # @param triangle, a list of lists of integers # @return an integer def minimumTotal(self, triangle): depth=len(tr...
分类:
其他好文 时间:
2014-10-10 20:59:14
阅读次数:
202
--备份数据库(到时分)Declare @Path Nvarchar(2000) --定义备份路径和备份文件名变量Set @Path ='D:\DataBaseBackUp\LAXDN_FRIST'+CONVERT(NVARCHAR(8),GETDATE(),112)+REPLACE(CONVERT...
分类:
数据库 时间:
2014-10-10 19:09:44
阅读次数:
214