上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 配置文件的格式: [user] user_ip=127.0.0.1 user_name=testuser user_id=13 import ConfigParser conf = ConfigParser.ConfigParser() filepath = "c:\test.conf" conf. 阅读全文
posted @ 2016-06-23 13:16 巫谢 阅读(1959) 评论(0) 推荐(0) 编辑
摘要: 1.基本的读取配置文件 -read(filename) 直接读取ini文件内容 -sections() 得到所有的section,并以列表的形式返回 -options(section) 得到该section的所有option -items(section) 得到该section的所有键值对 -get 阅读全文
posted @ 2016-06-23 13:16 巫谢 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 采用原生JS写法: 阅读全文
posted @ 2016-05-26 18:35 巫谢 阅读(2485) 评论(0) 推荐(1) 编辑
摘要: get /调用方法 如 get('pages/statisticsJsp/excel.action', {html :'prnhtml',cm1:'sdsddsd',cm2:'haha'}); post /调用方法 如post('pages/statisticsJsp/excel.action', 阅读全文
posted @ 2016-05-26 18:06 巫谢 阅读(10109) 评论(0) 推荐(0) 编辑
摘要: alter table table_name AUTO_INCREMENT 3; 阅读全文
posted @ 2016-05-24 17:32 巫谢 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: Python中的dict可以实现迅速查找。那么有没有像数组有二维数组一样,有二维的字典呢?比如我需要对两个关键词进行查找的时候。2D dict 可以通过 来建立,并通过 来访问。但是添加一个新的 “key-value”对却比较复杂。对一维字典,可以用 或者 来实现。但是”2-D” dictionar 阅读全文
posted @ 2016-05-24 14:27 巫谢 阅读(16584) 评论(2) 推荐(4) 编辑
摘要: 举个栗子: 怎么将变量text的值赋给文本域<input type="text" size="30" value=""> 解决方案: 阅读全文
posted @ 2016-05-22 23:21 巫谢 阅读(22841) 评论(0) 推荐(0) 编辑
摘要: 1、编写python脚本监控nginx 2、将脚本check_nginx拷贝到/usr/local/nagios/libexec/下,并chmod +x ./check_nginx 如果你要监控nagios安装本机的nginx进程,请参考如下步骤: 3、在/usr/local/nagios/etc/ 阅读全文
posted @ 2016-05-20 11:41 巫谢 阅读(396) 评论(0) 推荐(0) 编辑
摘要: python中 getopt 模块, 该模块是专门用来处理命令行参数的 函数getopt(args, shortopts, longopts = []) 参数args一般是sys.argv[1:] shortopts 短格式 (-) longopts 长格式(--) 命令行中输入: python c 阅读全文
posted @ 2016-05-20 10:17 巫谢 阅读(1074) 评论(0) 推荐(0) 编辑
摘要: 首先,可以进入/usr/local/nagios/sbin, [root@localhost sbin]# ldd statusmap.cgi linux-vdso.so.1 => (0x00007fffc9ffd000) libgd.so.2 => /usr/lib64/libgd.so.2 (0 阅读全文
posted @ 2016-05-19 14:19 巫谢 阅读(304) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页