作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/ __author__ = 'gnuhpc'import telnetlib,socketIP={}def parseTel(line): parseArray = line.split() IP[parseArr...
分类:
Web程序 时间:
2014-07-06 18:19:01
阅读次数:
321
Do-While while循环的另一个版本是do-while循环,它在判断条件之前,先执行一遍循环体,然后再次执行循环体,直到条件成为false. do-while循环的通过格式: do { statements } while condition 我们再用蛇和梯子...
分类:
移动开发 时间:
2014-07-06 18:18:24
阅读次数:
252
先看一下问题简单封装了一下system()函数:1intpox_system(constchar*cmd_line)2{3returnsystem(cmd_line);4}函数调用:1intret = 0;2ret = pox_system("gzip -c /var/opt/I00005.xml ...
分类:
系统相关 时间:
2014-07-06 18:17:48
阅读次数:
219
//FileWriterpublic class FileWriterDemo {//字符流:适用于文本文件,以字符为单位进行操作,经常和缓冲流一起使用/** * 字符流操作步骤: * 1、创建字符流 * 2、创建缓冲流 * 3、进行读写操作 * 4、关闭流 *///使用缓冲流要注意的:要想把缓冲流...
分类:
其他好文 时间:
2014-07-06 16:59:26
阅读次数:
141
本文转自:http://www.cfanz.cn/index.php?c=article&a=read&id=65289最近换了新电脑,装了win7 64位系统,安装了各种开发环境,也安装了android开发环境,与xp下的安装基本一致,记录下简单步骤及可能遇到的问题,供后人参考。1.jdk下载地址...
Given an array of words and a lengthL, format the text such that each line has exactlyLcharacters and is fully (left and right) justified.You should p...
分类:
其他好文 时间:
2014-07-06 16:10:10
阅读次数:
138
有时启或无缘无故的就会出来数据库连不上的问题。1.重启服务器2.出现了mysql未连接上,3.重新启动mysql,出现5024.执行/etc/init.d/php-fpm start,出现数据库无法连接5.执行service mysqld restart,重启数据库如果=====nginx错====...
分类:
数据库 时间:
2014-07-06 15:49:55
阅读次数:
317
#include#includestruct test{ char name[20]; void (*func)(char *);};void tttfunc(char *name){ printf("current is %d\n",__LINE__); printf("%s\n",name);}...
分类:
系统相关 时间:
2014-07-06 15:44:49
阅读次数:
223
ECMAScript通过RegExp类型来支持正则表达式。使用类似Perl的语法就可以创建一个正则表达式:var expression=/pattern/flags;其中模式(pattern)部分可以是任何简单或复杂的正则表达式,可以包含字符类、限定符、分组、向前查找以及反向引用。每个正则表达式都可...
分类:
Web程序 时间:
2014-07-06 14:38:13
阅读次数:
246
void Update (){ if(Input.GetMouseButton(1)) { if (axes == RotationAxes.MouseXAndY) { // Read the mouse input axis rotationX += Input.GetAx...
分类:
其他好文 时间:
2014-07-06 14:34:18
阅读次数:
181