码迷,mamicode.com
首页 >  
搜索关键字:direct path write temp    ( 55479个结果)
Python,遍历目录下TXT
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
通过指针形参修改实参的值2
注意:图示使用的地址只是假设的,并不是真正的内存地址,只是说明原理上次说到的是修改基本类型的变量,这次来说修改指针变量的值#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
ApacheBench 使用教程
ab压力测试ab是Apache超文本传输协议(HTTP)的性能测试工具。其设计意图是描绘当前所安装的Apache的执行性能。主要是显示你安装的Apache每秒可以处理多少个请求。 格式:./ab [options] [http://]hostname[:port]/path详细语法:ab [ -A ...
分类:Web程序   时间:2014-10-11 00:10:34    阅读次数:351
python命令行参数处理模块 optparse 使用参考
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
(图解)Description Resource Path Location Type Java compiler level does not match the version of
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
通过指针形参修改实参的值1
先说说修改基本类型变量的值,比如说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
solrcloud 数据监控
#!/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
Triangle---minimum path sum
动态规划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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!