__author__ = ‘jenny‘ import pexpect ip="localhost" user="jenny" passwd="gaoxing" if __name__=="__main__": ? ? child = pexpect.spawn("ssh-keygen") ? ? print child.expect("Enter file*") ? ? ch...
分类:
其他好文 时间:
2014-12-16 22:51:58
阅读次数:
276
怀疑mssql的默认编码。。。应该不是utf8吧???query("SELECT * FROM ofadmin");foreach($a as $b) {print_r ($b); }?>效果图
分类:
数据库 时间:
2014-12-16 20:58:00
阅读次数:
243
-2147483648 是最小的整数(32位)。但是:if (-2147483648 > 0) std::cout << "true"; // print trueelse std::cout << "false"打印出来的是"true"。你知道其中的原因吗? -2147483648 ...
分类:
其他好文 时间:
2014-12-16 20:48:33
阅读次数:
264
catbbs.access.2014-05-01.log|awk‘{print$1}‘|sort-n|uniq-c|sort-n|tac|head-n10catbbs.access.2014-05-01.log|awk‘{print$1}‘|sort-n|uniq-c|sort-n|tail-n10catbbs.access.2014-05-01.log|awk‘{print$9}‘|sort-n|uniq-c[root@mode~]#awk‘{print$1}‘access_2010-12-8.log|so..
分类:
其他好文 时间:
2014-12-16 19:29:11
阅读次数:
181
#include
#include
using namespace std;
void print(char*,int);
void InsertIntoVector(char*,int);
void PrintVector();
void Insertion(char c,int start, int end);
vectorVecChar;
int main(int argc, ch...
分类:
其他好文 时间:
2014-12-16 17:04:07
阅读次数:
206
函数,变量 1 def add1(a,b): 2 c=a+b 3 print 'add1:%s' %c 4 def add2(a): 5 print 'add2:%s' %a 6 def add3(): 7 print 'add3:no' 8 def add4(*a...
分类:
编程语言 时间:
2014-12-16 16:49:15
阅读次数:
208
读取文件: 1 from sys import argv 2 script,file_name = argv 3 prompt = '>' 4 print 'you want open file name %r' %file_name 5 text = open(file_name) 6 print...
分类:
编程语言 时间:
2014-12-16 16:32:57
阅读次数:
223
#includeint main(){ int year,month,day; scanf("%d%d%d",&year,&month,&day); int runian(int month,int day); int frunian(int month,int day); if((year%4.....
分类:
其他好文 时间:
2014-12-16 14:44:50
阅读次数:
106
java ,actionpublic void print(String rs){ PrintWriter out; try { HttpServletResponse response = ServletActionContext.getResponse(); response.set...
分类:
Web程序 时间:
2014-12-16 14:43:49
阅读次数:
124
6-1 字符串 .string 模块中是否有一种字符串方法或者函数可以帮我鉴定一下一个字符串是否是另一个大字符串的一部分?#!/usr/bin/env pythondef contain(str1,str2): if str1 in str2: print...
分类:
编程语言 时间:
2014-12-16 14:43:10
阅读次数:
221